add: achievement toggle

Closes #16
This commit is contained in:
Mar0xy 2023-09-29 00:57:38 +02:00
parent 0c7011bd02
commit fc00f08d5b
No known key found for this signature in database
GPG key ID: 56569BBE47D2C828
9 changed files with 45 additions and 1 deletions

View file

@ -12,6 +12,7 @@ import * as os from '@/os.js';
import { i18n } from '@/i18n.js';
import { ui } from '@/config.js';
import { unisonReload } from '@/scripts/unison-reload.js';
import { instance } from './instance.js';
export const navbarItemDef = reactive({
notifications: {
@ -104,7 +105,7 @@ export const navbarItemDef = reactive({
achievements: {
title: i18n.ts.achievements,
icon: 'ti ti-medal',
show: computed(() => $i != null),
show: computed(() => $i != null && instance.enableAchievements),
to: '/my/achievements',
},
ui: {