summaryrefslogtreecommitdiff
path: root/packages/frontend/src/pages/admin
diff options
context:
space:
mode:
authorsyuilo <4439005+syuilo@users.noreply.github.com>2025-04-16 16:47:03 +0900
committersyuilo <4439005+syuilo@users.noreply.github.com>2025-04-16 16:47:03 +0900
commiteda2f587a389ecc67642b855c70d7aa65b41a38b (patch)
tree781a096b3245dd34709bcd1683ea66bce38774ea /packages/frontend/src/pages/admin
parentBump version to 2025.4.1-alpha.1 (diff)
downloadsharkey-eda2f587a389ecc67642b855c70d7aa65b41a38b.tar.gz
sharkey-eda2f587a389ecc67642b855c70d7aa65b41a38b.tar.bz2
sharkey-eda2f587a389ecc67642b855c70d7aa65b41a38b.zip
enhance: コントロールパネルでジョブキューをクリアできるように
Diffstat (limited to 'packages/frontend/src/pages/admin')
-rw-r--r--packages/frontend/src/pages/admin/queue.vue8
1 files changed, 5 insertions, 3 deletions
diff --git a/packages/frontend/src/pages/admin/queue.vue b/packages/frontend/src/pages/admin/queue.vue
index b5aee1e51e..ee56c258c9 100644
--- a/packages/frontend/src/pages/admin/queue.vue
+++ b/packages/frontend/src/pages/admin/queue.vue
@@ -10,14 +10,16 @@ SPDX-License-Identifier: AGPL-3.0-only
<XQueue v-if="tab === 'deliver'" domain="deliver"/>
<XQueue v-else-if="tab === 'inbox'" domain="inbox"/>
<br>
- <MkButton @click="promoteAllQueues"><i class="ti ti-reload"></i> {{ i18n.ts.retryAllQueuesNow }}</MkButton>
+ <div class="_buttons">
+ <MkButton @click="promoteAllQueues"><i class="ti ti-reload"></i> {{ i18n.ts.retryAllQueuesNow }}</MkButton>
+ <MkButton danger @click="clear"><i class="ti ti-trash"></i> {{ i18n.ts.clearQueue }}</MkButton>
+ </div>
</MkSpacer>
</MkStickyContainer>
</template>
<script lang="ts" setup>
import { ref, computed } from 'vue';
-import * as config from '@@/js/config.js';
import XQueue from './queue.chart.vue';
import XHeader from './_header_.vue';
import type { Ref } from 'vue';
@@ -38,7 +40,7 @@ function clear() {
}).then(({ canceled }) => {
if (canceled) return;
- os.apiWithDialog('admin/queue/clear');
+ os.apiWithDialog('admin/queue/clear', { type: tab.value, state: '*' });
});
}