Add Icinga2 API server

This commit is contained in:
Benjamin Drieu 2021-12-01 15:27:37 +01:00 committed by Benjamin Drieu
parent 93d4e485ae
commit ffebd4d6a0

View File

@ -277,8 +277,10 @@ function createPrefWidgets ( noteBook, type, isActive )
} }
else if ( prefEntry.key == 'type' ) else if ( prefEntry.key == 'type' )
{ {
[ 'Icinga', 'Icinga2' ].forEach((item) => { [ { name: 'Icinga', value: 'Icinga server' },
this.prefWidgets[prefEntry.key].append_text(item); { 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 );
} ); } );
} }