Add Icinga2 API server

This commit is contained in:
Benjamin Drieu 2021-12-01 15:27:37 +01:00
parent fd04906622
commit fac786de7b
1 changed files with 4 additions and 2 deletions

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 );
} ); } );
} }