This commit is contained in:
syuilo
2020-09-06 12:30:27 +09:00
parent 256307f1a9
commit e33f2398f5
270 changed files with 1173 additions and 961 deletions

View File

@@ -20,8 +20,9 @@
import { defineComponent } from 'vue';
import { faExchangeAlt } from '@fortawesome/free-solid-svg-icons';
import { faTrashAlt } from '@fortawesome/free-regular-svg-icons';
import MkButton from '../../components/ui/button.vue';
import MkButton from '@/components/ui/button.vue';
import XQueue from './queue.chart.vue';
import * as os from '@/os';
export default defineComponent({
metaInfo() {
@@ -57,7 +58,7 @@ export default defineComponent({
methods: {
clear() {
this.$store.dispatch('showDialog', {
os.dialog({
type: 'warning',
title: this.$t('clearQueueConfirmTitle'),
text: this.$t('clearQueueConfirmText'),
@@ -65,8 +66,8 @@ export default defineComponent({
}).then(({ canceled }) => {
if (canceled) return;
this.$root.api('admin/queue/clear', {}).then(() => {
this.$store.dispatch('showDialog', {
os.api('admin/queue/clear', {}).then(() => {
os.dialog({
type: 'success',
iconOnly: true, autoClose: true
});