From 51fc8834596b85abce22e39d78844f68bc684fb7 Mon Sep 17 00:00:00 2001 From: Michael Mayer Date: Mon, 21 Aug 2023 10:44:54 +0200 Subject: [PATCH] Albums: Only pre-select manually manage albums in upload dialog #3644 Signed-off-by: Michael Mayer --- frontend/src/component/album/toolbar.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/frontend/src/component/album/toolbar.vue b/frontend/src/component/album/toolbar.vue index 3c56ff656..353a16ddd 100644 --- a/frontend/src/component/album/toolbar.vue +++ b/frontend/src/component/album/toolbar.vue @@ -176,7 +176,12 @@ export default { this.dialog.upload = true; }, showUpload() { - Event.publish("dialog.upload", {albums: [this.album]}); + // Pre-select manually managed albums in upload dialog. + if(this.album.Type === "album") { + Event.publish("dialog.upload", {albums: [this.album]}); + } else { + Event.publish("dialog.upload", {albums: []}); + } }, expand() { this.searchExpanded = !this.searchExpanded;