From 5711823339b53039c80b55b33f633319648748d9 Mon Sep 17 00:00:00 2001
From: zeroinformatique
Date: Sat, 17 Oct 2020 22:47:46 +0200
Subject: viewer: fixed the back button which was not working properly anymore
 (#271)

github: resolves #270---
 viewer/src/components/LdCommand.vue | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

(limited to 'viewer/src/components/LdCommand.vue')

diff --git a/viewer/src/components/LdCommand.vue b/viewer/src/components/LdCommand.vue
index 6059162..2578055 100644
--- a/viewer/src/components/LdCommand.vue
+++ b/viewer/src/components/LdCommand.vue
@@ -25,10 +25,10 @@
     </a>
     <ld-command-sort />
     <a
-      :class="{ disabled: isEntryPoint }"
+      :class="{ disabled: isEntryPoint() }"
       class="link command-secondary"
       :title="$t('command.back')"
-      @click="isEntryPoint || $router.back()"
+      @click="isEntryPoint() || $router.back()"
     >
       <fa-icon icon="arrow-left" size="lg" />
     </a>
@@ -55,7 +55,7 @@ export default class LdCommand extends Vue {
     return this.currentItemPath.length <= 1 && !this.$uiStore.searchMode;
   }
 
-  get isEntryPoint(): boolean {
+  isEntryPoint(): boolean {
     return history.state?.ldgallery === "ENTRYPOINT"; // Set by MainLayout.vue
   }
 
-- 
cgit v1.2.3

