notification import/export (#413)

Co-authored-by: hay-kot <hay-kot@pm.me>
This commit is contained in:
Hayden
2021-05-20 19:16:42 -08:00
committed by GitHub
parent 2c970b8f92
commit dcd9567059
9 changed files with 55 additions and 8 deletions

View File

@@ -42,6 +42,10 @@ export default {
value: true,
text: this.$t("group.groups"),
},
notifications: {
value: true,
text: this.$t("events.notification"),
},
},
};
},
@@ -57,6 +61,7 @@ export default {
pages: this.options.pages.value,
users: this.options.users.value,
groups: this.options.groups.value,
notifications: this.options.notifications.value,
});
},
},

View File

@@ -98,6 +98,7 @@ export default {
pages: true,
users: true,
groups: true,
notifications: true,
};
this.availableTemplates = [];
this.selectedTemplates = [];
@@ -122,10 +123,13 @@ export default {
themes: this.options.themes,
users: this.options.users,
groups: this.options.groups,
notifications: this.options.notifications,
},
templates: this.selectedTemplates,
};
console.log(data);
if (await api.backups.create(data)) {
this.$emit("created");
}

View File

@@ -97,6 +97,7 @@ export default {
themes: this.options.themes,
users: this.options.users,
groups: this.options.groups,
notifications: this.options.notifications,
};
this.loading = true;
const importData = await this.importBackup(eventData);