File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/components/quickActions Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 5151 <template #icon >
5252 <PlusIcon :size =" 20" />
5353 </template >
54- <NcActionButton :close-after-click =" true" @click =" addQuickAction('markAsSpam')" >
54+ <NcActionButton v-if = " !deletionAndMovingDisabled " :close-after-click =" true" @click =" addQuickAction('markAsSpam')" >
5555 <template #icon >
5656 <AlertOctagonIcon :size =" 20" />
5757 </template >
@@ -193,7 +193,7 @@ export default {
193193 },
194194
195195 deletionAndMovingDisabled () {
196- return this .actions .some ((action ) => [' deleteThread' , ' moveThread' ].includes (action .name ))
196+ return this .actions .some ((action ) => [' deleteThread' , ' moveThread' , ' markAsSpam ' ].includes (action .name ))
197197 },
198198
199199 canSave () {
@@ -328,7 +328,7 @@ export default {
328328
329329 onDrop (e ) {
330330 const { removedIndex , addedIndex } = e
331- if (this .deletionAndMovingDisabled && addedIndex === this .actions .length - 1 ) {
331+ if (this .deletionAndMovingDisabled && ( addedIndex === this .actions .length - 1 || removedIndex === this . actions . length - 1 ) ) {
332332 return
333333 }
334334 const movedItem = this .actions [removedIndex]
You can’t perform that action at this time.
0 commit comments