fix some missing $config
This commit is contained in:
@@ -141,14 +141,14 @@ export default {
|
|||||||
},
|
},
|
||||||
async toggleUserBlock (ap_user) {
|
async toggleUserBlock (ap_user) {
|
||||||
if (!ap_user.blocked) {
|
if (!ap_user.blocked) {
|
||||||
const ret = await this.$root.$confirm(this.$t('admin.user_block_confirm'))
|
const ret = await this.$root.$confirm('admin.user_block_confirm')
|
||||||
if (!ret) { return }
|
if (!ret) { return }
|
||||||
}
|
}
|
||||||
await this.$axios.post('/instances/toggle_user_block', { ap_id: ap_user.ap_id })
|
await this.$axios.post('/instances/toggle_user_block', { ap_id: ap_user.ap_id })
|
||||||
ap_user.blocked = !ap_user.blocked
|
ap_user.blocked = !ap_user.blocked
|
||||||
},
|
},
|
||||||
async deleteResource (resource) {
|
async deleteResource (resource) {
|
||||||
const ret = await this.$root.$confirm(this.$t('admin.delete_resource_confirm'))
|
const ret = await this.$root.$confirm('admin.delete_resource_confirm')
|
||||||
if (!ret) { return }
|
if (!ret) { return }
|
||||||
await this.$axios.delete(`/resources/${resource.id}`)
|
await this.$axios.delete(`/resources/${resource.id}`)
|
||||||
this.resources = this.resources.filter(r => r.id !== resource.id)
|
this.resources = this.resources.filter(r => r.id !== resource.id)
|
||||||
|
|||||||
@@ -143,7 +143,7 @@ export default {
|
|||||||
this.linkModal = false
|
this.linkModal = false
|
||||||
},
|
},
|
||||||
async removeFooterLink (item) {
|
async removeFooterLink (item) {
|
||||||
const ret = await this.$root.$confirm(this.$t('common.confirm'), this.$t('admin.delete_footer_link_confirm'))
|
const ret = await this.$root.$confirm('admin.delete_footer_link_confirm')
|
||||||
if (!ret) { return }
|
if (!ret) { return }
|
||||||
const footerLinks = this.settings.footerLinks.filter(l => l.label !== item.label)
|
const footerLinks = this.settings.footerLinks.filter(l => l.label !== item.label)
|
||||||
this.setSetting({ key: 'footerLinks', value: footerLinks })
|
this.setSetting({ key: 'footerLinks', value: footerLinks })
|
||||||
|
|||||||
@@ -67,7 +67,7 @@
|
|||||||
|
|
||||||
v-dialog(v-model='showFollowMe' destroy-on-close max-width='500px')
|
v-dialog(v-model='showFollowMe' destroy-on-close max-width='500px')
|
||||||
h4(slot='title') {{$t('common.follow_me_title')}}
|
h4(slot='title') {{$t('common.follow_me_title')}}
|
||||||
FollowMe
|
FollowMe(@close='showFollowMe=false' is-dialog)
|
||||||
|
|
||||||
v-dialog.showResource#resourceDialog(v-model='showResources' fullscreen
|
v-dialog.showResource#resourceDialog(v-model='showResources' fullscreen
|
||||||
width='95vw'
|
width='95vw'
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
...mapActions(['delEvent']),
|
...mapActions(['delEvent']),
|
||||||
async remove (parent = false) {
|
async remove (parent = false) {
|
||||||
const ret = await this.$root.$confirm(this.$t('common.confirm'), this.$t(`event.remove_${parent ? 'recurrent_' : ''}confirmation`))
|
const ret = await this.$root.$confirm(`event.remove_${parent ? 'recurrent_' : ''}confirmation`)
|
||||||
if (!ret) { return }
|
if (!ret) { return }
|
||||||
const id = parent ? this.event.parentId : this.event.id
|
const id = parent ? this.event.parentId : this.event.id
|
||||||
await this.$axios.delete(`/event/${id}`)
|
await this.$axios.delete(`/event/${id}`)
|
||||||
|
|||||||
@@ -54,14 +54,12 @@ export default {
|
|||||||
// Message({ message: e, showClose: true, type: 'warning' })
|
// Message({ message: e, showClose: true, type: 'warning' })
|
||||||
// })
|
// })
|
||||||
// },
|
// },
|
||||||
remove_account () {
|
async remove_account () {
|
||||||
this.$root.$confirm(this.$t('settings.remove_account_confirm'), this.$t('common.confirm'), {
|
const ret = await this.$root.$confirm('settings.remove_account_confirm', { color: 'error' })
|
||||||
type: 'error'
|
if (!ret) return
|
||||||
}).then(() => {
|
this.$axios.$delete('/user')
|
||||||
this.$axios.$delete('/user')
|
this.$auth.logout()
|
||||||
this.$auth.logout()
|
this.$router.replace('/')
|
||||||
this.$router.replace('/')
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
head () {
|
head () {
|
||||||
|
|||||||
Reference in New Issue
Block a user