@@ -24,7 +24,7 @@
|
||||
$t("We'll use your timezone settings to send a recap of the morning of the event.")
|
||||
}}
|
||||
</p>
|
||||
<span v-if="loggedUser.settings.timezone">{{
|
||||
<span v-if="loggedUser.settings && loggedUser.settings.timezone">{{
|
||||
$t("Your timezone is currently set to {timezone}.", {
|
||||
timezone: loggedUser.settings.timezone,
|
||||
})
|
||||
@@ -115,6 +115,16 @@ export default class Notifications extends Vue {
|
||||
};
|
||||
}
|
||||
|
||||
@Watch("loggedUser")
|
||||
setSettings() {
|
||||
if (this.loggedUser && this.loggedUser.settings) {
|
||||
this.notificationOnDay = this.loggedUser.settings.notificationOnDay;
|
||||
this.notificationEachWeek = this.loggedUser.settings.notificationEachWeek;
|
||||
this.notificationBeforeEvent = this.loggedUser.settings.notificationBeforeEvent;
|
||||
this.notificationPendingParticipation = this.loggedUser.settings.notificationPendingParticipation;
|
||||
}
|
||||
}
|
||||
|
||||
async updateSetting(variables: object) {
|
||||
await this.$apollo.mutate<{ setUserSettings: string }>({
|
||||
mutation: SET_USER_SETTINGS,
|
||||
|
||||
Reference in New Issue
Block a user