diff options
author | zeroinformatique | 2020-10-17 22:47:46 +0200 |
---|---|---|
committer | GitHub | 2020-10-17 22:47:46 +0200 |
commit | 5711823339b53039c80b55b33f633319648748d9 (patch) | |
tree | 510f4d57e0558fb0448a47d4f38f046f3a515615 /viewer/src/components/LdCommand.vue | |
parent | 36ba63ee29e8d24dcd0d173560d42045210c0965 (diff) | |
download | ldgallery-5711823339b53039c80b55b33f633319648748d9.tar.gz |
viewer: fixed the back button which was not working properly anymore (#271)
github: resolves #270
Diffstat (limited to 'viewer/src/components/LdCommand.vue')
-rw-r--r-- | viewer/src/components/LdCommand.vue | 6 |
1 files changed, 3 insertions, 3 deletions
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 @@ | |||
25 | </a> | 25 | </a> |
26 | <ld-command-sort /> | 26 | <ld-command-sort /> |
27 | <a | 27 | <a |
28 | :class="{ disabled: isEntryPoint }" | 28 | :class="{ disabled: isEntryPoint() }" |
29 | class="link command-secondary" | 29 | class="link command-secondary" |
30 | :title="$t('command.back')" | 30 | :title="$t('command.back')" |
31 | @click="isEntryPoint || $router.back()" | 31 | @click="isEntryPoint() || $router.back()" |
32 | > | 32 | > |
33 | <fa-icon icon="arrow-left" size="lg" /> | 33 | <fa-icon icon="arrow-left" size="lg" /> |
34 | </a> | 34 | </a> |
@@ -55,7 +55,7 @@ export default class LdCommand extends Vue { | |||
55 | return this.currentItemPath.length <= 1 && !this.$uiStore.searchMode; | 55 | return this.currentItemPath.length <= 1 && !this.$uiStore.searchMode; |
56 | } | 56 | } |
57 | 57 | ||
58 | get isEntryPoint(): boolean { | 58 | isEntryPoint(): boolean { |
59 | return history.state?.ldgallery === "ENTRYPOINT"; // Set by MainLayout.vue | 59 | return history.state?.ldgallery === "ENTRYPOINT"; // Set by MainLayout.vue |
60 | } | 60 | } |
61 | 61 | ||