diff options
author | Daniel Kesselberg <mail@danielkesselberg.de> | 2020-03-15 17:32:50 +0100 |
---|---|---|
committer | npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com> | 2020-03-16 11:37:38 +0000 |
commit | e44b58ed8b26ecc9bb7da7f6292f0a3977a882bc (patch) | |
tree | 6c2b59a359b7a93b667d2fe2908f2b5983897487 /apps/workflowengine/src | |
parent | 48bdd322a210e5e80ad1bb80ecbe86fad5ba28d1 (diff) | |
download | nextcloud-server-e44b58ed8b26ecc9bb7da7f6292f0a3977a882bc.tar.gz nextcloud-server-e44b58ed8b26ecc9bb7da7f6292f0a3977a882bc.zip |
Hide card for apps store if disabled
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
Diffstat (limited to 'apps/workflowengine/src')
-rw-r--r-- | apps/workflowengine/src/components/Workflow.vue | 6 | ||||
-rw-r--r-- | apps/workflowengine/src/store.js | 1 |
2 files changed, 4 insertions, 3 deletions
diff --git a/apps/workflowengine/src/components/Workflow.vue b/apps/workflowengine/src/components/Workflow.vue index 29ca2f44ed0..121e517e964 100644 --- a/apps/workflowengine/src/components/Workflow.vue +++ b/apps/workflowengine/src/components/Workflow.vue @@ -51,7 +51,6 @@ import Rule from './Rule' import Operation from './Operation' import { mapGetters, mapState } from 'vuex' -import { loadState } from '@nextcloud/initial-state' import { generateUrl } from '@nextcloud/router' const ACTION_LIMIT = 3 @@ -66,7 +65,6 @@ export default { return { showMoreOperations: false, appstoreUrl: generateUrl('settings/apps/workflow'), - scope: loadState('workflowengine', 'scope'), } }, computed: { @@ -74,6 +72,8 @@ export default { rules: 'getRules', }), ...mapState({ + appstoreEnabled: 'appstoreEnabled', + scope: 'scope', operations: 'operations', }), hasMoreOperations() { @@ -86,7 +86,7 @@ export default { return Object.values(this.operations).slice(0, ACTION_LIMIT) }, showAppStoreHint() { - return this.scope === 0 && OC.isUserAdmin() + return this.scope === 0 && this.appstoreEnabled && OC.isUserAdmin() }, }, mounted() { diff --git a/apps/workflowengine/src/store.js b/apps/workflowengine/src/store.js index 79524ab4514..3d38fe1bb03 100644 --- a/apps/workflowengine/src/store.js +++ b/apps/workflowengine/src/store.js @@ -33,6 +33,7 @@ const store = new Vuex.Store({ state: { rules: [], scope: loadState('workflowengine', 'scope'), + appstoreEnabled: loadState('workflowengine', 'appstoreenabled'), operations: loadState('workflowengine', 'operators'), plugins: Vue.observable({ |