Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/files_retention.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2022-10-18 16:51:34 +0300
committerJoas Schilling <coding@schilljs.com>2022-10-18 16:51:34 +0300
commit9d21a6b8c19d4e70355406fc59152bd214b2ec40 (patch)
tree77a02f00ceb35e404051192841f63557c1e53c07
parent6f674758b61f0f1b4ecd10073bcfbffbc1337c58 (diff)
Fix unlocking the checkbox again
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rw-r--r--src/AdminSettings.vue8
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),
}
)
},