diff options
author | Joas Schilling <coding@schilljs.com> | 2022-10-18 16:51:34 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2022-10-18 16:51:34 +0300 |
commit | 9d21a6b8c19d4e70355406fc59152bd214b2ec40 (patch) | |
tree | 77a02f00ceb35e404051192841f63557c1e53c07 | |
parent | 6f674758b61f0f1b4ecd10073bcfbffbc1337c58 (diff) |
Fix unlocking the checkbox again
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rw-r--r-- | src/AdminSettings.vue | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/AdminSettings.vue b/src/AdminSettings.vue index a8a4999..cc9e368 100644 --- a/src/AdminSettings.vue +++ b/src/AdminSettings.vue @@ -182,7 +182,7 @@ export default { 'notify_before', newNotifyBefore ? 'yes' : 'no', { - success() { + success: function() { if (newNotifyBefore) { showSuccess(t('files_retention', 'Users are now notified one day before a file or folder is being deleted')) } else { @@ -191,11 +191,11 @@ export default { this.loadingNotifyBefore = false this.notifyBefore = newNotifyBefore - }, - error() { + }.bind(this), + error: function() { this.loadingNotifyBefore = false showError(t('files_retention', 'An error occurred while changing the setting')) - }, + }.bind(this), } ) }, |