biome format --write
This commit is contained in:
parent
8372348148
commit
9262e803ec
415 changed files with 54076 additions and 17419 deletions
|
|
@ -2,32 +2,36 @@ import BooleanSetting from '../helpers/boolean_setting.vue'
|
|||
import SharedComputedObject from '../helpers/shared_computed_object.js'
|
||||
|
||||
const NotificationsTab = {
|
||||
data () {
|
||||
data() {
|
||||
return {
|
||||
activeTab: 'profile',
|
||||
notificationSettings: this.$store.state.users.currentUser.notification_settings,
|
||||
newDomainToMute: ''
|
||||
notificationSettings:
|
||||
this.$store.state.users.currentUser.notification_settings,
|
||||
newDomainToMute: '',
|
||||
}
|
||||
},
|
||||
components: {
|
||||
BooleanSetting
|
||||
BooleanSetting,
|
||||
},
|
||||
computed: {
|
||||
user () {
|
||||
user() {
|
||||
return this.$store.state.users.currentUser
|
||||
},
|
||||
canReceiveReports () {
|
||||
if (!this.user) { return false }
|
||||
canReceiveReports() {
|
||||
if (!this.user) {
|
||||
return false
|
||||
}
|
||||
return this.user.privileges.includes('reports_manage_reports')
|
||||
},
|
||||
...SharedComputedObject()
|
||||
...SharedComputedObject(),
|
||||
},
|
||||
methods: {
|
||||
updateNotificationSettings () {
|
||||
this.$store.state.api.backendInteractor
|
||||
.updateNotificationSettings({ settings: this.notificationSettings })
|
||||
}
|
||||
}
|
||||
updateNotificationSettings() {
|
||||
this.$store.state.api.backendInteractor.updateNotificationSettings({
|
||||
settings: this.notificationSettings,
|
||||
})
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
export default NotificationsTab
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue