Skip to content

Self-hosted personal gallery application with online photo management and albums, supporting Live/Motion Photos, EXIF parsing, geolocation recognition, and an explore map.

fix: 控制台照片管理操作按钮显示逻辑错误

Timothy Yin5daf7692e6f6
diff --git a/app/pages/dashboard/photos.vue b/app/pages/dashboard/photos.vue
index fdfd5e79..1bab94af 100644
--- a/app/pages/dashboard/photos.vue
+++ b/app/pages/dashboard/photos.vue
@@ -1181,15 +1181,18 @@ onUnmounted(() => {
:items="[
[
{
- color: row.original.isLivePhoto ? 'warning' : 'info',
- label: row.original.isLivePhoto ? '实况预览' : '重新处理',
- icon: row.original.isLivePhoto
- ? 'tabler:live-photo'
- : 'tabler:refresh',
+ label: '重新处理',
+ icon: 'tabler:refresh',
onSelect() {
- row.original.isLivePhoto
- ? handleViewLivePhoto(row.original.id)
- : handleReprocessSingle(row.original)
+ handleReprocessSingle(row.original)
+ },
+ },
+ {
+ label: '实况预览',
+ icon: 'tabler:live-photo',
+ disabled: !row.original.isLivePhoto,
+ onSelect() {
+ handleViewLivePhoto(row.original.id)
},
},
],