From ee49073cf21f26466a7b3099d3b5829e7933cc58 Mon Sep 17 00:00:00 2001 From: Michael Mayer Date: Tue, 8 Dec 2020 22:40:13 +0100 Subject: [PATCH] Albums: Improve UX and indexing --- frontend/src/component/photo/clipboard.vue | 6 ++--- frontend/src/pages/albums.vue | 5 ++++ internal/api/album.go | 16 +++++++------ internal/entity/album.go | 28 +++++++++++++++++++--- internal/entity/folder.go | 7 +++++- internal/entity/folder_test.go | 4 ++-- internal/photoprism/moments.go | 4 ++-- internal/query/albums.go | 2 +- 8 files changed, 53 insertions(+), 19 deletions(-) diff --git a/frontend/src/component/photo/clipboard.vue b/frontend/src/component/photo/clipboard.vue index dc7db7fd3..11474dd6b 100644 --- a/frontend/src/component/photo/clipboard.vue +++ b/frontend/src/component/photo/clipboard.vue @@ -91,7 +91,7 @@ :title="$gettext('Archive')" @click.stop="dialog.archive = true" :disabled="selection.length === 0" - v-if="!manualAlbum && context !== 'archive' && $config.feature('archive')" + v-if="!isAlbum && context !== 'archive' && $config.feature('archive')" class="action-archive" > archive @@ -113,7 +113,7 @@ color="remove" @click.stop="removeFromAlbum" :disabled="selection.length === 0" - v-if="manualAlbum" + v-if="isAlbum" class="action-delete" > remove @@ -153,7 +153,7 @@ export default { return { config: this.$config.values, expanded: false, - manualAlbum: this.album && this.album.Type === 'album', + isAlbum: this.album && this.album.Type === 'album', dialog: { archive: false, album: false, diff --git a/frontend/src/pages/albums.vue b/frontend/src/pages/albums.vue index 4fddd9753..8f81b6c01 100644 --- a/frontend/src/pages/albums.vue +++ b/frontend/src/pages/albums.vue @@ -174,6 +174,11 @@ Add photos or videos from search results by selecting them. +
+ +