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

github.com/nextcloud/mail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Steinmetz <richard@steinmetz.cloud>2022-09-13 14:59:57 +0300
committerRichard Steinmetz <richard@steinmetz.cloud>2022-09-13 15:03:59 +0300
commit21de4150743cc96968b9a1c0723d3f40c463ce32 (patch)
tree8b8f06bb783e29a36f120b32a64a8ea7a8fe2d49
parente53469f1481fd064db6511edb52e4fab71d42427 (diff)
Fetch sieve script after enabling sieve
Otherwise, the autoresponder won't render because it is waiting for the sieve script to be fetched. Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
-rw-r--r--src/components/SieveAccountForm.vue5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/components/SieveAccountForm.vue b/src/components/SieveAccountForm.vue
index 28f37e51d..299c71f1f 100644
--- a/src/components/SieveAccountForm.vue
+++ b/src/components/SieveAccountForm.vue
@@ -182,6 +182,11 @@ export default {
account: this.account,
data: this.sieveConfig,
})
+ if (this.sieveConfig.sieveEnabled) {
+ await this.$store.dispatch('fetchActiveSieveScript', {
+ accountId: this.account.id,
+ })
+ }
} catch (error) {
this.errorMessage = error.message
}