From 676a80038b9d699dfb9c74799ed5eb8eaa2be7c1 Mon Sep 17 00:00:00 2001 From: Amir Raminfar Date: Tue, 12 May 2020 11:55:07 -0700 Subject: [PATCH] Fixes title to use visible containers --- assets/App.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/assets/App.vue b/assets/App.vue index 8ef6b467..1110d1ad 100644 --- a/assets/App.vue +++ b/assets/App.vue @@ -76,7 +76,7 @@ export default { }, async created() { await this.fetchContainerList(); - this.title = `${this.containers.length} containers`; + this.title = `${this.visibleContainers.length} containers`; }, mounted() { if (this.hasSmallerScrollbars) { @@ -94,7 +94,8 @@ export default { }, }, computed: { - ...mapState(["containers", "activeContainers", "isMobile", "settings"]), + ...mapState(["activeContainers", "isMobile", "settings"]), + ...mapGetters(["visibleContainers"]), hasSmallerScrollbars() { return this.settings.smallerScrollbars; },