Compare commits

..

No commits in common. "e96d15bc663c336697d5dc6003d3b9a1792427ed" and "3e091fd02b9d27e80eac6528857dcb14d5b1d134" have entirely different histories.

2 changed files with 3 additions and 26 deletions

View File

@ -91,15 +91,7 @@ export const useUserStore = defineStore({
}, },
async updateRole(role: FG.Role) { async updateRole(role: FG.Role) {
try { await api.put(`/roles/${role.id}`, role);
await api.put(`/roles/${role.id}`, role);
} catch (error) {
console.warn(error);
}
this._updatePermission(role);
},
_updatePermission(role: FG.Role) {
const idx = this.roles.findIndex((r) => r.id === role.id); const idx = this.roles.findIndex((r) => r.id === role.id);
if (idx != -1) this.roles[idx] = role; if (idx != -1) this.roles[idx] = role;
this._dirty_roles = true; this._dirty_roles = true;

View File

@ -77,7 +77,7 @@ import EssentialLink from 'src/components/navigation/EssentialLink.vue';
import ShortcutLink from 'src/components/navigation/ShortcutLink.vue'; import ShortcutLink from 'src/components/navigation/ShortcutLink.vue';
import Notification from 'src/components/Notification.vue'; import Notification from 'src/components/Notification.vue';
import { defineComponent, ref, inject, computed, onBeforeMount, onBeforeUnmount } from 'vue'; import { defineComponent, ref, inject, computed, onBeforeMount, onBeforeUnmount } from 'vue';
import { Screen, Platform } from 'quasar'; import { Screen } from 'quasar';
import config from 'src/config'; import config from 'src/config';
import { useRouter } from 'vue-router'; import { useRouter } from 'vue-router';
import { useMainStore } from '@flaschengeist/api'; import { useMainStore } from '@flaschengeist/api';
@ -105,22 +105,7 @@ export default defineComponent({
const router = useRouter(); const router = useRouter();
const mainStore = useMainStore(); const mainStore = useMainStore();
const flaschengeist = inject<FG_Plugin.Flaschengeist>('flaschengeist'); const flaschengeist = inject<FG_Plugin.Flaschengeist>('flaschengeist');
const _leftDrawer = ref<boolean|undefined>(); const leftDrawer = ref(false);
const leftDrawer = computed({
get: () => {
if (_leftDrawer.value !== undefined) {
console.log("ist undefiend")
return _leftDrawer.value
}
if (Platform.is.mobile) {
console.log("is mobile")
return false
}
console.log("is desktop")
return true
},
set: (val) => _leftDrawer.value = val
})
const leftDrawerMini = ref(false); const leftDrawerMini = ref(false);
const mainLinks = flaschengeist?.menuLinks || []; const mainLinks = flaschengeist?.menuLinks || [];
const notifications = computed(() => mainStore.notifications.slice().reverse()); const notifications = computed(() => mainStore.notifications.slice().reverse());