fix: hide success message after 3 sec

pull/67/head
sualko 2020-08-26 10:54:26 +02:00
parent dd7bd97cb3
commit d7a0bfce09
1 changed files with 4 additions and 0 deletions

View File

@ -52,6 +52,10 @@ $(() => {
saveSettings(this['api.url'].value, this['api.secret'].value).then(() => { saveSettings(this['api.url'].value, this['api.secret'].value).then(() => {
const successElement = generateSuccessElement(t('bbb', 'Settings saved')); const successElement = generateSuccessElement(t('bbb', 'Settings saved'));
setTimeout(() => {
$('#bbb-result').empty();
}, 3000);
$('#bbb-result').append(successElement); $('#bbb-result').append(successElement);
}).catch(err => { }).catch(err => {
let message = t('bbb', 'Unexpected error occurred'); let message = t('bbb', 'Unexpected error occurred');