fix some missing $config
This commit is contained in:
@@ -141,14 +141,14 @@ export default {
|
||||
},
|
||||
async toggleUserBlock (ap_user) {
|
||||
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 }
|
||||
}
|
||||
await this.$axios.post('/instances/toggle_user_block', { ap_id: ap_user.ap_id })
|
||||
ap_user.blocked = !ap_user.blocked
|
||||
},
|
||||
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 }
|
||||
await this.$axios.delete(`/resources/${resource.id}`)
|
||||
this.resources = this.resources.filter(r => r.id !== resource.id)
|
||||
|
||||
@@ -143,7 +143,7 @@ export default {
|
||||
this.linkModal = false
|
||||
},
|
||||
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 }
|
||||
const footerLinks = this.settings.footerLinks.filter(l => l.label !== item.label)
|
||||
this.setSetting({ key: 'footerLinks', value: footerLinks })
|
||||
|
||||
Reference in New Issue
Block a user