Skip to content
Snippets Groups Projects
Unverified Commit 928cf4bf authored by Julius Härtl's avatar Julius Härtl Committed by Arthur Schiwon
Browse files

Fix issue with unavailable operations


Signed-off-by: default avatarJulius Härtl <jus@bitgrid.net>
parent 2adcc754
No related branches found
No related tags found
No related merge requests found
<template>
<div class="section rule" :style="{ borderLeftColor: operation.color || '' }">
<div v-if="operation" class="section rule" :style="{ borderLeftColor: operation.color || '' }">
<div class="trigger">
<p>
<span>{{ t('workflowengine', 'When') }}</span>
......
......@@ -19,10 +19,11 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
const scopeValue = OCP.InitialState.loadState('workflowengine', 'scope') === 0 ? 'global' : 'user'
import { loadState } from '@nextcloud/initial-state'
const scopeValue = loadState('workflowengine', 'scope') === 0 ? 'global' : 'user'
const getApiUrl = (url) => {
return OC.linkToOCS('apps/workflowengine/api/v1/workflows', 2) + scopeValue + url + '?format=json'
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment