From d52aa55a4fd78605fd83fee20af9bca84331f6af Mon Sep 17 00:00:00 2001
From: Julius Härtl <jus@bitgrid.net>
Date: Fri, 25 May 2018 15:52:17 +0200
Subject: Improve sidebar handling
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Julius Härtl <jus@bitgrid.net>
---
 settings/src/components/appManagement.vue | 10 ++++++++++
 1 file changed, 10 insertions(+)

(limited to 'settings/src/components/appManagement.vue')

diff --git a/settings/src/components/appManagement.vue b/settings/src/components/appManagement.vue
index 24f56040900..a78259ab1aa 100644
--- a/settings/src/components/appManagement.vue
+++ b/settings/src/components/appManagement.vue
@@ -22,6 +22,16 @@
 
 <script>
 	export default {
+		mounted() {
+			if (this.app.groups.length > 0) {
+				this.groupCheckedAppsData = true;
+			}
+		},
+		computed: {
+			appGroups() {
+				return this.app.groups.map(group => {return {id: group, name: group}});
+			},
+		},
 		methods: {
 			isLimitedToGroups(app) {
 				if (this.app.groups.length || this.groupCheckedAppsData) {
-- 
cgit v1.2.3

