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(cloud): keep live gallery unpublish available during loading

Timothy Yindf6c256d67f3
diff --git a/apps/cloud/app/components/CloudSitePublication.vue b/apps/cloud/app/components/CloudSitePublication.vue
index 390bd815..ddeb61a2 100644
--- a/apps/cloud/app/components/CloudSitePublication.vue
+++ b/apps/cloud/app/components/CloudSitePublication.vue
@@ -77,7 +77,7 @@ async function unpublish() {
:variant="context?.published ? 'ghost' : 'default'"
size="sm"
:disabled="
- busy || loading || !host || (!photos.length && !context?.published)
+ busy || (!context?.published && (loading || !host || !photos.length))
"
:loading="busy"
@click="context?.published ? (unpublishOpen = true) : publish(true)"