Change to use tasks for mj (#65)

Co-authored-by: Germey <germey@acedata.cloud>
This commit is contained in:
GermeyandGermey authored and GitHub committed 2024-07-02 16:29:11 +00:00
1 parent 4d179f306a
commit 01d44e75f2
16 files changed
+194 -67

No files matched your search

+13 -6
View File
@@ -73,6 +73,9 @@ export default defineComponent({
user() {
return this.$store.getters.user;
},
showSite() {
return this.$store?.state?.site?.admins?.includes(this.$store.getters.user?.id);
},
links(): ILink[] {
let links: ILink[] = [
{
@@ -105,12 +108,16 @@ export default defineComponent({
name: ROUTE_DISTRIBUTION_INDEX,
icon: 'fa-solid fa-coins'
},
{
key: 'site-index',
text: this.$t('common.nav.site'),
name: ROUTE_SITE_INDEX,
icon: 'fa-solid fa-gear'
},
...(this.showSite
? [
{
key: 'site-index',
text: this.$t('common.nav.site'),
name: ROUTE_SITE_INDEX,
icon: 'fa-solid fa-gear'
}
]
: []),
{
key: 'dark-setting',
text: this.$t('common.nav.darkMode'),