aboutsummaryrefslogtreecommitdiffstats
path: root/apps/workflowengine/src/helpers/api.js
diff options
context:
space:
mode:
authorblizzz <blizzz@arthur-schiwon.de>2019-11-04 15:01:55 +0100
committerGitHub <noreply@github.com>2019-11-04 15:01:55 +0100
commit64bfd4bbeb10e07bd2133a97c50175a156d43d61 (patch)
tree9aae61e00f1fd1adc1007cb413793d2eab6ecf40 /apps/workflowengine/src/helpers/api.js
parente517ca05300f8b57858056c8a09416fe4fd2889d (diff)
parent3f97025613b3b05621f60d666842e44bec6ee665 (diff)
downloadnextcloud-server-64bfd4bbeb10e07bd2133a97c50175a156d43d61.tar.gz
nextcloud-server-64bfd4bbeb10e07bd2133a97c50175a156d43d61.zip
Merge pull request #17506 from nextcloud/bugfix/12790/workflow-frontend
Workflow frontend polishing
Diffstat (limited to 'apps/workflowengine/src/helpers/api.js')
-rw-r--r--apps/workflowengine/src/helpers/api.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/workflowengine/src/helpers/api.js b/apps/workflowengine/src/helpers/api.js
index 2b2bb40a7e2..76861d3bb35 100644
--- a/apps/workflowengine/src/helpers/api.js
+++ b/apps/workflowengine/src/helpers/api.js
@@ -22,8 +22,9 @@
import { loadState } from '@nextcloud/initial-state'
+const scopeValue = loadState('workflowengine', 'scope') === 0 ? 'global' : 'user'
+
const getApiUrl = (url) => {
- const scopeValue = loadState('workflowengine', 'scope') === 0 ? 'global' : 'user'
return OC.linkToOCS('apps/workflowengine/api/v1/workflows', 2) + scopeValue + url + '?format=json'
}