mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
fix(editor): Fix event emit on credential sharing (#6922)
Fix event emit
This commit is contained in:
@@ -147,7 +147,7 @@ export default defineComponent({
|
||||
methods: {
|
||||
async onAddSharee(userId: string) {
|
||||
const sharee = { ...this.usersStore.getUserById(userId), isOwner: false };
|
||||
this.$emit('change', (this.credentialData.sharedWith || []).concat(sharee));
|
||||
this.$emit('update:modelValue', (this.credentialData.sharedWith || []).concat(sharee));
|
||||
},
|
||||
async onRemoveSharee(userId: string) {
|
||||
const user = this.usersStore.getUserById(userId);
|
||||
@@ -170,7 +170,7 @@ export default defineComponent({
|
||||
|
||||
if (confirm === MODAL_CONFIRM) {
|
||||
this.$emit(
|
||||
'change',
|
||||
'update:modelValue',
|
||||
this.credentialData.sharedWith.filter((sharee: IUser) => {
|
||||
return sharee.id !== user.id;
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user