mirror of https://github.com/sualko/cloud_bbb
Added saveAppSettings for appname setting functionality;
parent
fb4b17d8b5
commit
30ed9f0141
|
@ -120,11 +120,17 @@ $(() => {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
async function saveAppSettings(name: string) {
|
||||||
|
await checkPasswordConfirmation();
|
||||||
|
|
||||||
|
console.log(`DAMN THIS ${name}`); //TODO REMOVE
|
||||||
|
OCP.AppConfig.setValue('bbb', 'app.navigation.name', name);
|
||||||
|
}
|
||||||
|
|
||||||
$('#bbb-nav-name').on('submit', function (ev) {
|
$('#bbb-nav-name').on('submit', function (ev) {
|
||||||
ev.preventDefault();
|
ev.preventDefault();
|
||||||
|
|
||||||
const resultElement = $(this).find('.bbb-result').empty();
|
const resultElement = $(this).find('.app-result').empty();
|
||||||
|
|
||||||
saveAppSettings(this['app.navigation.name'].value).then(() => {
|
saveAppSettings(this['app.navigation.name'].value).then(() => {
|
||||||
const successElement = generateSuccessElement(t('bbb', 'Settings saved'));
|
const successElement = generateSuccessElement(t('bbb', 'Settings saved'));
|
||||||
|
|
Loading…
Reference in New Issue