mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-06-29 11:31:35 +08:00
fix: add exit action for drag sort mode
This commit is contained in:
@@ -76,6 +76,7 @@ export default {
|
||||
clearCache: 'Clear Cache',
|
||||
sortMode: 'Sort Mode',
|
||||
sortModeHint: 'Drag sorting mode is active',
|
||||
exit: 'Exit',
|
||||
},
|
||||
mediaType: {
|
||||
movie: 'Movie',
|
||||
|
||||
@@ -76,6 +76,7 @@ export default {
|
||||
clearCache: '清除缓存',
|
||||
sortMode: '排序模式',
|
||||
sortModeHint: '已进入拖拽排序模式',
|
||||
exit: '退出',
|
||||
},
|
||||
mediaType: {
|
||||
movie: '电影',
|
||||
|
||||
@@ -76,6 +76,7 @@ export default {
|
||||
clearCache: '清除快取',
|
||||
sortMode: '排序模式',
|
||||
sortModeHint: '已進入拖拽排序模式',
|
||||
exit: '退出',
|
||||
},
|
||||
mediaType: {
|
||||
movie: '電影',
|
||||
|
||||
@@ -1523,7 +1523,12 @@ function onDragStartPlugin(evt: any) {
|
||||
<VPageContentTitle v-if="installedFilter" :title="t('plugin.filter', { name: installedFilter })" />
|
||||
<LoadingBanner v-if="!isRefreshed" class="mt-12" />
|
||||
<VAlert v-if="sortMode" color="warning" variant="tonal" class="mb-4">
|
||||
{{ t('common.sortModeHint') }}
|
||||
<div class="d-flex flex-wrap align-center justify-space-between gap-2">
|
||||
<span>{{ t('common.sortModeHint') }}</span>
|
||||
<VBtn size="small" variant="text" color="warning" @click="sortMode = false">
|
||||
{{ t('common.exit') }}
|
||||
</VBtn>
|
||||
</div>
|
||||
</VAlert>
|
||||
|
||||
<!-- 文件夹和插件网格 -->
|
||||
|
||||
@@ -396,7 +396,12 @@ useDynamicButton({
|
||||
</div>
|
||||
|
||||
<VAlert v-if="sortMode" color="warning" variant="tonal" class="mb-4">
|
||||
{{ t('common.sortModeHint') }}
|
||||
<div class="d-flex flex-wrap align-center justify-space-between gap-2">
|
||||
<span>{{ t('common.sortModeHint') }}</span>
|
||||
<VBtn size="small" variant="text" color="warning" @click="sortMode = false">
|
||||
{{ t('common.exit') }}
|
||||
</VBtn>
|
||||
</div>
|
||||
</VAlert>
|
||||
|
||||
<LoadingBanner v-if="!isRefreshed" class="mt-12" />
|
||||
|
||||
@@ -484,7 +484,12 @@ defineExpose({
|
||||
</div>
|
||||
|
||||
<VAlert v-if="sortMode" color="warning" variant="tonal" class="mb-4 mx-2">
|
||||
{{ t('common.sortModeHint') }}
|
||||
<div class="d-flex flex-wrap align-center justify-space-between gap-2">
|
||||
<span>{{ t('common.sortModeHint') }}</span>
|
||||
<VBtn size="small" variant="text" color="warning" @click="sortMode = false">
|
||||
{{ t('common.exit') }}
|
||||
</VBtn>
|
||||
</div>
|
||||
</VAlert>
|
||||
|
||||
<draggable
|
||||
|
||||
Reference in New Issue
Block a user