summaryrefslogtreecommitdiffstats
path: root/webapp
diff options
context:
space:
mode:
authorUdo Walter2019-04-12 05:53:46 +0200
committerUdo Walter2019-04-12 05:53:46 +0200
commitf801dacf52b5e8e26a39f97dc09b12960995c714 (patch)
tree0dcf99b24725877228c3caf9fe80689d674946c7 /webapp
parent[webapp/groups] performance improvement; tab order fix; (diff)
downloadbas-f801dacf52b5e8e26a39f97dc09b12960995c714.tar.gz
bas-f801dacf52b5e8e26a39f97dc09b12960995c714.tar.xz
bas-f801dacf52b5e8e26a39f97dc09b12960995c714.zip
[webapp/groups] very small fix
Diffstat (limited to 'webapp')
-rw-r--r--webapp/src/components/GroupModuleGroupView.vue9
1 files changed, 5 insertions, 4 deletions
diff --git a/webapp/src/components/GroupModuleGroupView.vue b/webapp/src/components/GroupModuleGroupView.vue
index d4f404b..37f1c02 100644
--- a/webapp/src/components/GroupModuleGroupView.vue
+++ b/webapp/src/components/GroupModuleGroupView.vue
@@ -170,7 +170,7 @@
></v-switch>
</div>
</template>
- <group-module-group-list v-if="isMounted" class="selectable" :tabIndex="tabIndex" :groupId="group.id" :groups="group.subgroups || []" />
+ <group-module-group-list v-if="loadTables || group.id === 0" class="selectable" :tabIndex="tabIndex" :groupId="group.id" :groups="group.subgroups || []" />
<div v-else></div>
</v-expansion-panel-content>
<v-expansion-panel-content v-if="group.id !== 'create'" class="non-selectable">
@@ -189,7 +189,7 @@
></v-switch>
</div>
</template>
- <group-module-client-list v-if="isMounted" class="selectable" :tabIndex="tabIndex" :groupId="group.id" :clients="group.clients || []" />
+ <group-module-client-list v-if="loadTables" class="selectable" :tabIndex="tabIndex" :groupId="group.id" :clients="group.clients || []" />
<div v-else></div>
</v-expansion-panel-content>
</v-expansion-panel>
@@ -220,7 +220,7 @@ export default {
data () {
return {
section: 0,
- isMounted: false,
+ loadTables: false,
editMode: false,
info: {
name: '',
@@ -313,8 +313,9 @@ export default {
if (this.group.id === 'create') this.editInfo()
},
mounted () {
+ // Load tables later to speed up initial load/render time
setTimeout(() => {
- this.isMounted = true
+ this.loadTables = true
}, 10)
}
}