From de460f53b111c3cd75217baebd40791aacef9e53 Mon Sep 17 00:00:00 2001 From: DebaucheryLibrarian Date: Sun, 7 Mar 2021 16:54:20 +0100 Subject: [PATCH] Changed album close behavior so album can be closed when visiting URL directly. --- assets/components/actors/actor.vue | 2 +- assets/components/releases/release.vue | 2 +- assets/components/tags/tag.vue | 2 +- src/app.js | 7 +++++++ 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/assets/components/actors/actor.vue b/assets/components/actors/actor.vue index b8e4c98b..29c1860c 100644 --- a/assets/components/actors/actor.vue +++ b/assets/components/actors/actor.vue @@ -327,7 +327,7 @@ :title="actor.name" :portrait="true" :comments="true" - @close="$router.go(-1)" + @close="$router.replace({ hash: undefined })" />
diff --git a/assets/components/releases/release.vue b/assets/components/releases/release.vue index c0ce2f3f..d8d4594c 100644 --- a/assets/components/releases/release.vue +++ b/assets/components/releases/release.vue @@ -30,7 +30,7 @@ :items="[release.poster, ...release.photos]" :title="release.title" :path="config.media.mediaPath" - @close="$router.go(-1)" + @close="$router.replace({ hash: undefined })" />
diff --git a/assets/components/tags/tag.vue b/assets/components/tags/tag.vue index 7db38c12..22323a04 100644 --- a/assets/components/tags/tag.vue +++ b/assets/components/tags/tag.vue @@ -41,7 +41,7 @@ :title="tag.name" :local="true" class="portrait" - @close="$router.go(-1)" + @close="$router.replace({ hash: undefined })" />