mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-05 15:36:49 +08:00
feat(transfer-queue): enhance empty state display and add hint for no tasks
This commit is contained in:
@@ -311,8 +311,16 @@ onUnmounted(() => {
|
|||||||
<VProgressLinear v-if="dataList.length > 0" :model-value="overallProgressComputed" color="primary" />
|
<VProgressLinear v-if="dataList.length > 0" :model-value="overallProgressComputed" color="primary" />
|
||||||
<VDivider v-else />
|
<VDivider v-else />
|
||||||
|
|
||||||
<VCardText v-if="dataList.length === 0" class="text-center">
|
<VCardText v-if="dataList.length === 0" class="transfer-queue-empty">
|
||||||
{{ t('dialog.transferQueue.noTasks') }}
|
<VIcon class="transfer-queue-empty__icon" icon="mdi-sync" size="30" />
|
||||||
|
|
||||||
|
<div class="transfer-queue-empty__headline">
|
||||||
|
{{ t('dialog.transferQueue.noTasks') }}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="transfer-queue-empty__description">
|
||||||
|
{{ t('dialog.transferQueue.noTasksHint') }}
|
||||||
|
</div>
|
||||||
</VCardText>
|
</VCardText>
|
||||||
|
|
||||||
<VCardText v-if="dataList.length > 0">
|
<VCardText v-if="dataList.length > 0">
|
||||||
@@ -366,3 +374,51 @@ onUnmounted(() => {
|
|||||||
</VCard>
|
</VCard>
|
||||||
</VDialog>
|
</VDialog>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
.transfer-queue-empty {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
gap: 0.75rem;
|
||||||
|
min-block-size: 13rem;
|
||||||
|
padding-block: 2.5rem !important;
|
||||||
|
padding-inline: 1.5rem !important;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.transfer-queue-empty__icon {
|
||||||
|
color: rgba(var(--v-theme-on-surface), 0.32);
|
||||||
|
}
|
||||||
|
|
||||||
|
.transfer-queue-empty__headline {
|
||||||
|
color: rgba(var(--v-theme-on-surface), 0.9);
|
||||||
|
font-size: 1.15rem;
|
||||||
|
font-weight: 600;
|
||||||
|
line-height: 1.4;
|
||||||
|
}
|
||||||
|
|
||||||
|
.transfer-queue-empty__description {
|
||||||
|
color: rgba(var(--v-theme-on-surface), 0.6);
|
||||||
|
font-size: 0.92rem;
|
||||||
|
line-height: 1.65;
|
||||||
|
max-inline-size: 25rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (width <= 600px) {
|
||||||
|
.transfer-queue-empty {
|
||||||
|
min-block-size: 11rem;
|
||||||
|
padding-block: 2rem !important;
|
||||||
|
padding-inline: 1rem !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.transfer-queue-empty__headline {
|
||||||
|
font-size: 1.05rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.transfer-queue-empty__description {
|
||||||
|
font-size: 0.9rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|||||||
@@ -2585,6 +2585,7 @@ export default {
|
|||||||
failedState: 'Failed',
|
failedState: 'Failed',
|
||||||
cancelledState: 'Cancelled',
|
cancelledState: 'Cancelled',
|
||||||
noTasks: 'No tasks being organized',
|
noTasks: 'No tasks being organized',
|
||||||
|
noTasksHint: 'Task progress and status will appear here once organization starts.',
|
||||||
processing: 'Please wait ...',
|
processing: 'Please wait ...',
|
||||||
stopAll: 'Stop All',
|
stopAll: 'Stop All',
|
||||||
startAll: 'Start All',
|
startAll: 'Start All',
|
||||||
|
|||||||
@@ -2537,6 +2537,7 @@ export default {
|
|||||||
failedState: '失败',
|
failedState: '失败',
|
||||||
cancelledState: '已取消',
|
cancelledState: '已取消',
|
||||||
noTasks: '没有正在整理的任务',
|
noTasks: '没有正在整理的任务',
|
||||||
|
noTasksHint: '开始整理后,这里会显示任务进度和状态。',
|
||||||
processing: '请稍候 ...',
|
processing: '请稍候 ...',
|
||||||
stopAll: '全部停止',
|
stopAll: '全部停止',
|
||||||
startAll: '全部开始',
|
startAll: '全部开始',
|
||||||
|
|||||||
@@ -2538,6 +2538,7 @@ export default {
|
|||||||
failedState: '失敗',
|
failedState: '失敗',
|
||||||
cancelledState: '已取消',
|
cancelledState: '已取消',
|
||||||
noTasks: '沒有正在整理的任務',
|
noTasks: '沒有正在整理的任務',
|
||||||
|
noTasksHint: '開始整理後,這裡會顯示任務進度與狀態。',
|
||||||
processing: '請稍候 ...',
|
processing: '請稍候 ...',
|
||||||
stopAll: '全部停止',
|
stopAll: '全部停止',
|
||||||
startAll: '全部開始',
|
startAll: '全部開始',
|
||||||
|
|||||||
Reference in New Issue
Block a user