From 2ae82137cd816b53cdf60ecba986e938f81d09e9 Mon Sep 17 00:00:00 2001
From: "John Molakvoæ (skjnldsv)" <skjnldsv@protonmail.com>
Date: Fri, 6 Apr 2018 20:56:02 +0200
Subject: Group filtering, disable state, ocs api final update
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
---
 settings/src/components/popoverMenu/popoverItem.vue | 11 +++--------
 1 file changed, 3 insertions(+), 8 deletions(-)

(limited to 'settings/src/components/popoverMenu/popoverItem.vue')

diff --git a/settings/src/components/popoverMenu/popoverItem.vue b/settings/src/components/popoverMenu/popoverItem.vue
index 84907341327..343c4638005 100644
--- a/settings/src/components/popoverMenu/popoverItem.vue
+++ b/settings/src/components/popoverMenu/popoverItem.vue
@@ -1,10 +1,10 @@
 <template>
 	<li>
-		<a @click="dispatchToStore" v-if="item.href" :href="(item.href) ? item.href : '#' ">
+		<a @click="item.action" v-if="item.href" :href="(item.href) ? item.href : '#' ">
 			<span :class="item.icon"></span>
 			<span>{{item.text}}</span>
 		</a>
-		<button @click="dispatchToStore(item.action)" v-else>
+		<button @click="item.action" v-else>
 			<span :class="item.icon"></span>
 			<span>{{item.text}}</span>
 		</button>
@@ -13,11 +13,6 @@
 
 <script>
 export default {
-	props: ['item'],
-	methods: {
-		dispatchToStore () {
-			this.$store.dispatch(this.item.action, this.item.data);
-		}
-	}
+	props: ['item']
 }
 </script>
-- 
cgit v1.2.3

