From 5c31acba5bb07a9b87665e248e60336a2a5107f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C5=BEe=20Fortun?= Date: Fri, 7 Apr 2023 14:04:17 +0200 Subject: [PATCH] Autoselect icon after uploading --- client/web/compose/src/views/Admin/Pages/Edit.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/client/web/compose/src/views/Admin/Pages/Edit.vue b/client/web/compose/src/views/Admin/Pages/Edit.vue index 0416e911f..8c193c92f 100644 --- a/client/web/compose/src/views/Admin/Pages/Edit.vue +++ b/client/web/compose/src/views/Admin/Pages/Edit.vue @@ -682,7 +682,7 @@ width="auto" height="50" :class="{ 'selected-icon': selectedAttachmentID === a.attachmentID }" - class="rounded pointer mr-2" + class="rounded pointer m-2" @click="toggleSelectedIcon(a.attachmentID)" > @@ -1066,8 +1066,9 @@ export default { }).catch(this.toastErrorHandler(this.$t('notification:page.deleteFailed'))) }, - uploadAttachment () { + uploadAttachment ({ attachmentID }) { this.fetchAttachments() + this.toggleSelectedIcon(attachmentID) }, async fetchAttachments () {