Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Nextcloud
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeDomum
Nextcloud
Commits
dca861de
Unverified
Commit
dca861de
authored
5 years ago
by
Julius Härtl
Browse files
Options
Downloads
Patches
Plain Diff
Fix app store link and hide it for users (fix #18495 #18500)
Signed-off-by:
Julius Härtl
<
jus@bitgrid.net
>
parent
b8779eed
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
apps/workflowengine/src/components/Workflow.vue
+9
-2
9 additions, 2 deletions
apps/workflowengine/src/components/Workflow.vue
with
9 additions
and
2 deletions
apps/workflowengine/src/components/Workflow.vue
+
9
−
2
View file @
dca861de
...
...
@@ -13,7 +13,10 @@
:operation=
"operation"
@
click.native=
"createNewRule(operation)"
/>
<a
:key=
"'add'"
:href=
"appstoreUrl"
class=
"actions__item colored more"
>
<a
v-if=
"showAppStoreHint"
:key=
"'add'"
:href=
"appstoreUrl"
class=
"actions__item colored more"
>
<div
class=
"icon icon-add"
/>
<div
class=
"actions__item__description"
>
<h3>
{{
t
(
'
workflowengine
'
,
'
More flows
'
)
}}
</h3>
...
...
@@ -49,6 +52,7 @@ 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
...
...
@@ -61,7 +65,7 @@ export default {
data
()
{
return
{
showMoreOperations
:
false
,
appstoreUrl
:
'
/index.php/
settings/apps/workflow
'
,
appstoreUrl
:
generateUrl
(
'
settings/apps/workflow
'
)
,
scope
:
loadState
(
'
workflowengine
'
,
'
scope
'
),
}
},
...
...
@@ -81,6 +85,9 @@ export default {
}
return
Object
.
values
(
this
.
operations
).
slice
(
0
,
ACTION_LIMIT
)
},
showAppStoreHint
()
{
return
this
.
scope
===
0
&&
OC
.
isUserAdmin
()
},
},
mounted
()
{
this
.
$store
.
dispatch
(
'
fetchRules
'
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment