Compare commits

...

2 Commits

Author SHA1 Message Date
bymyself
71fcd283b3 improve severity on history clear 2025-12-16 05:07:18 -08:00
bymyself
c25a63adc5 use existing icon 2025-12-13 04:18:36 -08:00
2 changed files with 19 additions and 19 deletions

View File

@@ -5,13 +5,13 @@
<header <header
class="flex items-center justify-between border-b border-interface-stroke px-4 py-4" class="flex items-center justify-between border-b border-interface-stroke px-4 py-4"
> >
<p class="m-0 text-[14px] font-normal leading-none"> <h2 class="m-0 text-sm font-normal text-text-primary">
{{ t('sideToolbar.queueProgressOverlay.clearHistoryDialogTitle') }} {{ t('sideToolbar.queueProgressOverlay.clearHistoryDialogTitle') }}
</p> </h2>
<IconButton <IconButton
type="transparent" type="transparent"
size="sm" size="sm"
class="size-6 bg-transparent text-text-secondary hover:bg-secondary-background hover:opacity-100" class="size-4 bg-transparent text-text-secondary hover:bg-secondary-background hover:opacity-100"
:aria-label="t('g.close')" :aria-label="t('g.close')"
@click="onCancel" @click="onCancel"
> >
@@ -19,28 +19,28 @@
</IconButton> </IconButton>
</header> </header>
<div class="flex flex-col gap-4 px-4 py-4 text-[14px] text-text-secondary"> <div class="flex flex-col gap-6 px-4 py-4">
<p class="m-0"> <div class="text-sm text-text-secondary">
{{ {{
t('sideToolbar.queueProgressOverlay.clearHistoryDialogDescription') t('sideToolbar.queueProgressOverlay.clearHistoryDialogDescription')
}} }}
</p> <br /><br />
<p class="m-0">
{{ t('sideToolbar.queueProgressOverlay.clearHistoryDialogAssetsNote') }} {{ t('sideToolbar.queueProgressOverlay.clearHistoryDialogAssetsNote') }}
</p> </div>
</div> </div>
<footer class="flex items-center justify-end px-4 py-4"> <footer class="flex items-center justify-end px-4 py-4">
<div class="flex items-center gap-4 text-[14px] leading-none"> <div class="flex items-center gap-4">
<TextButton <Button
class="min-h-[24px] px-1 py-1 text-[14px] leading-[1] text-text-secondary hover:text-text-primary" class="h-6 px-1 py-1 text-sm"
type="transparent" severity="secondary"
text
:label="t('g.cancel')" :label="t('g.cancel')"
@click="onCancel" @click="onCancel"
/> />
<TextButton <Button
class="min-h-[32px] px-4 py-2 text-[12px] font-normal leading-[1]" class="h-10 px-4 py-2 text-sm font-normal"
type="secondary" severity="danger"
:label="t('g.clear')" :label="t('g.clear')"
:disabled="isClearing" :disabled="isClearing"
@click="onConfirm" @click="onConfirm"
@@ -51,11 +51,11 @@
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import Button from 'primevue/button'
import { ref } from 'vue' import { ref } from 'vue'
import { useI18n } from 'vue-i18n' import { useI18n } from 'vue-i18n'
import IconButton from '@/components/button/IconButton.vue' import IconButton from '@/components/button/IconButton.vue'
import TextButton from '@/components/button/TextButton.vue'
import { useErrorHandling } from '@/composables/useErrorHandling' import { useErrorHandling } from '@/composables/useErrorHandling'
import { useDialogStore } from '@/stores/dialogStore' import { useDialogStore } from '@/stores/dialogStore'
import { useQueueStore } from '@/stores/queueStore' import { useQueueStore } from '@/stores/queueStore'

View File

@@ -734,9 +734,9 @@
"jobsFailed": "{count} job failed | {count} jobs failed", "jobsFailed": "{count} job failed | {count} jobs failed",
"cancelJobTooltip": "Cancel job", "cancelJobTooltip": "Cancel job",
"clearQueueTooltip": "Clear queue", "clearQueueTooltip": "Clear queue",
"clearHistoryDialogTitle": "Clear your job queue history?", "clearHistoryDialogTitle": "Clear your history?",
"clearHistoryDialogDescription": "All the finished or failed jobs below will be removed from this Job queue panel.", "clearHistoryDialogDescription": "All jobs below will be removed.",
"clearHistoryDialogAssetsNote": "Assets generated by these jobs wont be deleted and can always be viewed from the assets panel." "clearHistoryDialogAssetsNote": "None of your outputs will be deleted."
}, },
"workflowTab": { "workflowTab": {
"confirmDeleteTitle": "Delete workflow?", "confirmDeleteTitle": "Delete workflow?",