Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions apps/files_sharing/src/components/UnifiedShareEntry.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,15 +146,15 @@ describe('deleting the share', () => {
describe('removing a participant', () => {
it('removes the recipient of the row it was triggered on', async () => {
const wrapper = mountEntry(share([recipient('bob'), recipient('carol')]))
await triggerAction(wrapper, 'Remove participant')
await triggerAction(wrapper, 'Remove recipient')
expect(removeRecipient).toHaveBeenCalledWith('42', 'UserRecipient', 'bob', null)
expect(wrapper.emitted('refresh')).toHaveLength(1)
})

it('does not refresh when the removal fails', async () => {
vi.mocked(removeRecipient).mockRejectedValueOnce(new Error('nope'))
const wrapper = mountEntry(share([recipient('bob'), recipient('carol')]))
await triggerAction(wrapper, 'Remove participant')
await triggerAction(wrapper, 'Remove recipient')
expect(wrapper.emitted('refresh')).toBeUndefined()
})
})
4 changes: 2 additions & 2 deletions apps/files_sharing/src/components/UnifiedShareEntry.vue
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,11 @@
:user="isNoUserRecipient(recipient) ? undefined : recipient.value"
:displayName="recipient.display_name" />
</template>
<NcActionButton :aria-label="t('files_sharing', 'Remove participant')" @click="removeOne(recipient)">
<NcActionButton :aria-label="t('files_sharing', 'Remove recipient')" @click="removeOne(recipient)">
<template #icon>
<DeleteIcon :size="20" />
</template>
{{ t('files_sharing', 'Remove participant') }}
{{ t('files_sharing', 'Remove recipient') }}
</NcActionButton>
</SharingEntrySimple>
</template>
Expand Down
2 changes: 0 additions & 2 deletions dist/5963-5963.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/5963-5963.js.map.license

This file was deleted.

2 changes: 2 additions & 0 deletions dist/8172-8172.js

Large diffs are not rendered by default.

File renamed without changes.
2 changes: 1 addition & 1 deletion dist/5963-5963.js.map → dist/8172-8172.js.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/8172-8172.js.map.license
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
import{a as t}from"./index-jpGmRwdJ.chunk.mjs";import{t as m}from"./index-CWUMrdUf.chunk.mjs";import{C as e,a as p}from"./CommentView-CxTqTklU.chunk.mjs";import{l as i}from"./activity-Be9Oz7-L.chunk.mjs";import{b as a,r as s,o as n,c,m as u}from"./preload-helper-Dc0eId0q.chunk.mjs";import{_ as l}from"./_plugin-vue_export-helper-CqVUm19z.chunk.mjs";import"./mdi-BIr98bXJ.chunk.mjs";import"./NcModal-CJHIiy3v.chunk.mjs";import"./Check-BKziy8TO.chunk.mjs";import"./Web-Dl1PlCyW.chunk.mjs";import"./public-DUDgMnHe.chunk.mjs";import"./formatRelative-CWI42LJx.chunk.mjs";import"./NcNoteCard-BPBMWVlm.chunk.mjs";import"./NcActionButton-B2wuOFDG.chunk.mjs";import"./NcActionSeparator-DHeqpy1v.chunk.mjs";import"./NcAvatar-BS706nyj.chunk.mjs";import"./TrashCanOutline-qfjufsE_.chunk.mjs";import"./util-BUUeB7_Z.chunk.mjs";import"./autolink-CR6oD3SL.chunk.mjs";import"./PencilOutline-3Re_nFMz.chunk.mjs";import"./NcUserStatusIcon-BFZ0UxxA.chunk.mjs";import"./NcActionLink-SIPUYGgd.chunk.mjs";import"./NcActionRouter-DwF9gNb6.chunk.mjs";import"./NcActionText-BNjiLeb5.chunk.mjs";import"./NcUserBubble-Bgwu2eNK.chunk.mjs";import"./GetComments-Cieh_0mb.chunk.mjs";import"./index-Dq-K5eg-.chunk.mjs";import"./dav-5YlaaVLc.chunk.mjs";import"./externalStorageUtils-2rxxo4ng.chunk.mjs";const d=a({components:{CommentEntry:p},mixins:[e],props:{reloadCallback:{type:Function,required:!0}},methods:{onNewComment(){try{this.reloadCallback()}catch(o){t(m("comments","Could not reload comments")),i.error("Could not reload comments",{error:o})}}}});function C(o,f,y,b,w,N){const r=s("CommentEntry");return n(),c(r,u(o.editorData,{autoComplete:o.autoComplete,resourceType:o.resourceType,editor:!0,userData:o.userData,resourceId:o.resourceId,class:"comments-action",onNew:o.onNewComment}),null,16,["autoComplete","resourceType","userData","resourceId","onNew"])}const W=l(d,[["render",C],["__scopeId","data-v-099b6b12"]]);export{W as default};
//# sourceMappingURL=ActivityCommentAction-RwKZ5Wht.chunk.mjs.map
import{a as t}from"./index-Dzh2kT5e.chunk.mjs";import{t as m}from"./index-CWUMrdUf.chunk.mjs";import{C as e,a as p}from"./CommentView-Cru2P1Qu.chunk.mjs";import{l as i}from"./activity-Be9Oz7-L.chunk.mjs";import{b as a,r as s,o as n,c,m as u}from"./preload-helper-Dc0eId0q.chunk.mjs";import{_ as l}from"./_plugin-vue_export-helper-CqVUm19z.chunk.mjs";import"./mdi-Exp9Mras.chunk.mjs";import"./NcModal-CApXrsyV.chunk.mjs";import"./Check-F1XzndZJ.chunk.mjs";import"./Web-CPFZEoRo.chunk.mjs";import"./public-DUDgMnHe.chunk.mjs";import"./formatRelative-4u0EHlo9.chunk.mjs";import"./NcNoteCard-CxK8iN8Q.chunk.mjs";import"./NcActionButton-C1EjXiZ0.chunk.mjs";import"./NcActionSeparator-CBxWG8I1.chunk.mjs";import"./NcAvatar-Cb8TzR6N.chunk.mjs";import"./TrashCanOutline-qfjufsE_.chunk.mjs";import"./util-BUUeB7_Z.chunk.mjs";import"./autolink-c7qp-9vn.chunk.mjs";import"./PencilOutline-V91S9fyM.chunk.mjs";import"./NcUserStatusIcon-jyBTSElq.chunk.mjs";import"./NcActionLink-g3xCbko5.chunk.mjs";import"./NcActionRouter-C0liprR3.chunk.mjs";import"./NcActionText-BUEkTsMp.chunk.mjs";import"./NcUserBubble-c2kfTsk9.chunk.mjs";import"./GetComments-Cieh_0mb.chunk.mjs";import"./index-Dq-K5eg-.chunk.mjs";import"./dav-5YlaaVLc.chunk.mjs";import"./externalStorageUtils-2rxxo4ng.chunk.mjs";const d=a({components:{CommentEntry:p},mixins:[e],props:{reloadCallback:{type:Function,required:!0}},methods:{onNewComment(){try{this.reloadCallback()}catch(o){t(m("comments","Could not reload comments")),i.error("Could not reload comments",{error:o})}}}});function C(o,f,y,b,w,N){const r=s("CommentEntry");return n(),c(r,u(o.editorData,{autoComplete:o.autoComplete,resourceType:o.resourceType,editor:!0,userData:o.userData,resourceId:o.resourceId,class:"comments-action",onNew:o.onNewComment}),null,16,["autoComplete","resourceType","userData","resourceId","onNew"])}const W=l(d,[["render",C],["__scopeId","data-v-099b6b12"]]);export{W as default};
//# sourceMappingURL=ActivityCommentAction-C1Rgy_3u.chunk.mjs.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
import{t as s}from"./index-CWUMrdUf.chunk.mjs";import{C as p,a as i}from"./CommentView-CxTqTklU.chunk.mjs";import{_ as a}from"./_plugin-vue_export-helper-CqVUm19z.chunk.mjs";import{r as n,o as c,c as u,m as d}from"./preload-helper-Dc0eId0q.chunk.mjs";import"./public-DUDgMnHe.chunk.mjs";import"./NcActionButton-B2wuOFDG.chunk.mjs";import"./Check-BKziy8TO.chunk.mjs";import"./Web-Dl1PlCyW.chunk.mjs";import"./NcModal-CJHIiy3v.chunk.mjs";import"./NcActionSeparator-DHeqpy1v.chunk.mjs";import"./NcAvatar-BS706nyj.chunk.mjs";import"./TrashCanOutline-qfjufsE_.chunk.mjs";import"./util-BUUeB7_Z.chunk.mjs";import"./autolink-CR6oD3SL.chunk.mjs";import"./PencilOutline-3Re_nFMz.chunk.mjs";import"./NcUserStatusIcon-BFZ0UxxA.chunk.mjs";import"./NcActionLink-SIPUYGgd.chunk.mjs";import"./NcActionRouter-DwF9gNb6.chunk.mjs";import"./NcActionText-BNjiLeb5.chunk.mjs";import"./formatRelative-CWI42LJx.chunk.mjs";import"./mdi-BIr98bXJ.chunk.mjs";import"./NcUserBubble-Bgwu2eNK.chunk.mjs";import"./index-jpGmRwdJ.chunk.mjs";import"./NcNoteCard-BPBMWVlm.chunk.mjs";import"./activity-Be9Oz7-L.chunk.mjs";import"./GetComments-Cieh_0mb.chunk.mjs";import"./index-Dq-K5eg-.chunk.mjs";import"./dav-5YlaaVLc.chunk.mjs";import"./externalStorageUtils-2rxxo4ng.chunk.mjs";const l={name:"ActivityCommentEntry",components:{CommentEntry:i},mixins:[p],props:{comment:{type:Object,required:!0},reloadCallback:{type:Function,required:!0}},data(){return{commentMessage:""}},watch:{comment(){this.commentMessage=this.comment.props.message}},mounted(){this.commentMessage=this.comment.props.message},methods:{t:s}};function g(t,e,o,y,m,C){const r=n("CommentEntry");return c(),u(r,d({ref:"comment",tag:"li"},o.comment.props,{autoComplete:t.autoComplete,resourceType:t.resourceType,message:m.commentMessage,resourceId:t.resourceId,userData:t.genMentionsData(o.comment.props.mentions),class:"comments-activity",onDelete:e[0]||(e[0]=f=>o.reloadCallback())}),null,16,["autoComplete","resourceType","message","resourceId","userData"])}const U=a(l,[["render",g],["__scopeId","data-v-2d51dbfd"]]);export{U as default};
//# sourceMappingURL=ActivityCommentEntry-C4Ya3_Rh.chunk.mjs.map
import{t as s}from"./index-CWUMrdUf.chunk.mjs";import{C as p,a as i}from"./CommentView-Cru2P1Qu.chunk.mjs";import{_ as a}from"./_plugin-vue_export-helper-CqVUm19z.chunk.mjs";import{r as n,o as c,c as u,m as d}from"./preload-helper-Dc0eId0q.chunk.mjs";import"./public-DUDgMnHe.chunk.mjs";import"./NcActionButton-C1EjXiZ0.chunk.mjs";import"./Check-F1XzndZJ.chunk.mjs";import"./Web-CPFZEoRo.chunk.mjs";import"./NcModal-CApXrsyV.chunk.mjs";import"./NcActionSeparator-CBxWG8I1.chunk.mjs";import"./NcAvatar-Cb8TzR6N.chunk.mjs";import"./TrashCanOutline-qfjufsE_.chunk.mjs";import"./util-BUUeB7_Z.chunk.mjs";import"./autolink-c7qp-9vn.chunk.mjs";import"./PencilOutline-V91S9fyM.chunk.mjs";import"./NcUserStatusIcon-jyBTSElq.chunk.mjs";import"./NcActionLink-g3xCbko5.chunk.mjs";import"./NcActionRouter-C0liprR3.chunk.mjs";import"./NcActionText-BUEkTsMp.chunk.mjs";import"./formatRelative-4u0EHlo9.chunk.mjs";import"./mdi-Exp9Mras.chunk.mjs";import"./NcUserBubble-c2kfTsk9.chunk.mjs";import"./index-Dzh2kT5e.chunk.mjs";import"./NcNoteCard-CxK8iN8Q.chunk.mjs";import"./activity-Be9Oz7-L.chunk.mjs";import"./GetComments-Cieh_0mb.chunk.mjs";import"./index-Dq-K5eg-.chunk.mjs";import"./dav-5YlaaVLc.chunk.mjs";import"./externalStorageUtils-2rxxo4ng.chunk.mjs";const l={name:"ActivityCommentEntry",components:{CommentEntry:i},mixins:[p],props:{comment:{type:Object,required:!0},reloadCallback:{type:Function,required:!0}},data(){return{commentMessage:""}},watch:{comment(){this.commentMessage=this.comment.props.message}},mounted(){this.commentMessage=this.comment.props.message},methods:{t:s}};function g(t,e,o,y,m,C){const r=n("CommentEntry");return c(),u(r,d({ref:"comment",tag:"li"},o.comment.props,{autoComplete:t.autoComplete,resourceType:t.resourceType,message:m.commentMessage,resourceId:t.resourceId,userData:t.genMentionsData(o.comment.props.mentions),class:"comments-activity",onDelete:e[0]||(e[0]=f=>o.reloadCallback())}),null,16,["autoComplete","resourceType","message","resourceId","userData"])}const U=a(l,[["render",g],["__scopeId","data-v-2d51dbfd"]]);export{U as default};
//# sourceMappingURL=ActivityCommentEntry-BWAnb1ZW.chunk.mjs.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading