1
0
mirror of https://github.com/amir20/dozzle.git synced 2025-12-24 06:28:42 +01:00

Fixes title to use visible containers

This commit is contained in:
Amir Raminfar
2020-05-12 11:55:07 -07:00
parent 3eafab1e0b
commit 676a80038b

View File

@@ -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;
},