wip
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<x-modal :source="source" :no-center="noCenter" ref="popup" @click="close()" @closed="$store.commit('removeMenu', id)" :showing="showing">
|
||||
<x-modal :source="source" :no-center="noCenter" ref="popup" @click="close()" @closed="$store.commit('removeDialog', id)" :showing="showing">
|
||||
<div class="rrevdjwt" :class="{ left: align === 'left' }" ref="items" :style="{ width: width + 'px' }">
|
||||
<template v-for="(item, i) in items.filter(item => item !== undefined)">
|
||||
<div v-if="item === null" class="divider" :key="i"></div>
|
||||
@@ -36,7 +36,8 @@
|
||||
import { defineComponent } from 'vue';
|
||||
import { faCircle } from '@fortawesome/free-solid-svg-icons';
|
||||
import XModal from './modal.vue';
|
||||
import { focusPrev, focusNext } from '../scripts/focus';
|
||||
import { focusPrev, focusNext } from '@/scripts/focus';
|
||||
import * as os from '@/os';
|
||||
|
||||
export default defineComponent({
|
||||
components: {
|
||||
@@ -102,7 +103,7 @@ export default defineComponent({
|
||||
},
|
||||
close() {
|
||||
this.showing = false;
|
||||
this.$store.commit('menuDone', { id: this.id });
|
||||
this.$store.commit('dialogDone', { id: this.id });
|
||||
},
|
||||
focusUp() {
|
||||
focusPrev(document.activeElement);
|
||||
|
Reference in New Issue
Block a user