30
30
<ApprovalRule v-for =" (rule, id) in rules"
31
31
:key =" id"
32
32
v-model:value =" rules[id]"
33
- :is-admin =" isAdmin"
34
33
class =" approval-rule"
35
34
@input =" onRuleInput(id, $event)"
36
35
@add-tag =" onAddTagClick" >
55
54
<div v-if =" newRule" class =" new-rule" >
56
55
<ApprovalRule
57
56
v-model:value =" newRule"
58
- :is-admin =" isAdmin"
59
57
:delete-rule-label =" newRuleDeleteLabel"
60
58
:focus =" true"
61
59
@add-tag =" onAddTagClick" >
91
89
</template >
92
90
{{ t('approval', 'New workflow') }}
93
91
</NcButton >
94
- <div v-if = " isAdmin " class =" create-tag" >
92
+ <div class =" create-tag" >
95
93
<label for =" create-tag-input" >
96
94
<TagIcon :size =" 16" />
97
- {{ t('approval', 'Create new hidden tag') }}
95
+ {{ t('approval', 'Create new restricted tag') }}
98
96
</label >
99
97
<input id =" create-tag-input"
100
98
ref =" createTagInput"
@@ -129,7 +127,6 @@ import ApprovalRule from './ApprovalRule.vue'
129
127
import { generateUrl } from ' @nextcloud/router'
130
128
import axios from ' @nextcloud/axios'
131
129
import { showSuccess , showError } from ' @nextcloud/dialogs'
132
- import { loadState } from ' @nextcloud/initial-state'
133
130
134
131
export default {
135
132
name: ' AdminSettings' ,
@@ -148,7 +145,6 @@ export default {
148
145
149
146
data () {
150
147
return {
151
- isAdmin: loadState (' approval' , ' is-admin' ),
152
148
showRules: true ,
153
149
newTagName: ' ' ,
154
150
rules: {},
0 commit comments