Skip to content

Commit 5f30c34

Browse files
icewind1991backportbot[bot]
authored andcommitted
fix: fix creating multiple acl rules in a row
Signed-off-by: Robin Appelman <[email protected]>
1 parent 981a743 commit 5f30c34

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

β€Žsrc/components/SharingSidebarView.vue

+2-3
Original file line numberDiff line numberDiff line change
@@ -133,12 +133,10 @@
133133
</template>
134134
{{ t('groupfolders', 'Add advanced permission rule') }}
135135
</NcButton>
136-
<NcSelect v-if="isAdmin && !loading"
137-
v-show="showAclCreate"
136+
<NcSelect v-if="isAdmin && !loading && showAclCreate"
138137
ref="select"
139138
v-model="value"
140139
:options="options"
141-
:clear-search-on-select="true"
142140
:loading="isSearching"
143141
:filterable="false"
144142
:placeholder="t('groupfolders', 'Select a user or group')"
@@ -312,6 +310,7 @@ export default {
312310
})
313311
},
314312
createAcl(option) {
313+
this.value = null;
315314
const rule = new Rule()
316315
rule.fromValues(option.type, option.id, option.displayname, 0b00000, 0b11111)
317316
this.list.push(rule)

0 commit comments

Comments
Β (0)