chore: remove global mixing
This commit is contained in:
@ -75,6 +75,8 @@ import {mapState} from 'vuex'
|
||||
import Fancycheckbox from '../../components/input/fancycheckbox.vue'
|
||||
import {LOADING} from '@/store/mutation-types'
|
||||
import ListCard from '@/components/list/partials/list-card.vue'
|
||||
import {getNamespaceTitle} from '@/helpers/getNamespaceTitle'
|
||||
import { setTitle } from '@/helpers/setTitle'
|
||||
|
||||
export default defineComponent({
|
||||
name: 'ListNamespaces',
|
||||
@ -88,7 +90,7 @@ export default defineComponent({
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.setTitle(this.$t('namespace.title'))
|
||||
setTitle(this.$t('namespace.title'))
|
||||
},
|
||||
computed: mapState({
|
||||
namespaces(state) {
|
||||
@ -101,6 +103,7 @@ export default defineComponent({
|
||||
loading: LOADING,
|
||||
}),
|
||||
methods: {
|
||||
getNamespaceTitle,
|
||||
saveShowArchivedState() {
|
||||
localStorage.setItem('showArchived', JSON.stringify(this.showArchived))
|
||||
},
|
||||
|
@ -48,6 +48,7 @@ import NamespaceModel from '../../models/namespace'
|
||||
import NamespaceService from '../../services/namespace'
|
||||
import CreateEdit from '@/components/misc/create-edit.vue'
|
||||
import ColorPicker from '../../components/input/colorPicker.vue'
|
||||
import { setTitle } from '@/helpers/setTitle'
|
||||
|
||||
export default defineComponent({
|
||||
name: 'NewNamespace',
|
||||
@ -64,7 +65,7 @@ export default defineComponent({
|
||||
CreateEdit,
|
||||
},
|
||||
mounted() {
|
||||
this.setTitle(this.$t('namespace.create.title'))
|
||||
setTitle(this.$t('namespace.create.title'))
|
||||
},
|
||||
methods: {
|
||||
async newNamespace() {
|
||||
|
@ -17,6 +17,7 @@
|
||||
import {defineComponent} from 'vue'
|
||||
|
||||
import NamespaceService from '@/services/namespace'
|
||||
import { setTitle } from '@/helpers/setTitle'
|
||||
|
||||
export default defineComponent({
|
||||
name: 'namespace-setting-archive',
|
||||
@ -33,7 +34,7 @@ export default defineComponent({
|
||||
this.title = this.namespace.isArchived ?
|
||||
this.$t('namespace.archive.titleUnarchive', {namespace: this.namespace.title}) :
|
||||
this.$t('namespace.archive.titleArchive', {namespace: this.namespace.title})
|
||||
this.setTitle(this.title)
|
||||
setTitle(this.title)
|
||||
},
|
||||
|
||||
methods: {
|
||||
|
@ -14,6 +14,7 @@
|
||||
|
||||
<script lang="ts">
|
||||
import {defineComponent} from 'vue'
|
||||
import { setTitle } from '@/helpers/setTitle'
|
||||
|
||||
export default defineComponent({
|
||||
name: 'namespace-setting-delete',
|
||||
@ -31,7 +32,7 @@ export default defineComponent({
|
||||
watch: {
|
||||
title: {
|
||||
handler(title) {
|
||||
this.setTitle(title)
|
||||
setTitle(title)
|
||||
},
|
||||
immediate: true,
|
||||
},
|
||||
|
Reference in New Issue
Block a user