diff --git a/prefs.js b/prefs.js index 28c5fc9..483d3db 100644 --- a/prefs.js +++ b/prefs.js @@ -277,8 +277,10 @@ function createPrefWidgets ( noteBook, type, isActive ) } else if ( prefEntry.key == 'type' ) { - [ 'Icinga', 'Icinga2' ].forEach((item) => { - this.prefWidgets[prefEntry.key].append_text(item); + [ { name: 'Icinga', value: 'Icinga server' }, + { name: 'Icinga2', value: 'Icinga2 server (without API)' }, + { name: 'Icinga2API', value: 'Icinga2 server (with API)' } ].forEach((item) => { + this.prefWidgets[prefEntry.key].insert ( -1, item.name, item.value ); } ); }