mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 10:31:15 +00:00
fix(editor): Fix event emit on credential sharing (#6922)
Fix event emit
This commit is contained in:
@@ -87,7 +87,7 @@
|
|||||||
:credentialId="credentialId"
|
:credentialId="credentialId"
|
||||||
:credentialPermissions="credentialPermissions"
|
:credentialPermissions="credentialPermissions"
|
||||||
:modalBus="modalBus"
|
:modalBus="modalBus"
|
||||||
@change="onChangeSharedWith"
|
@update:modelValue="onChangeSharedWith"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div v-else-if="activeTab === 'details' && credentialType" :class="$style.mainContent">
|
<div v-else-if="activeTab === 'details' && credentialType" :class="$style.mainContent">
|
||||||
|
|||||||
@@ -147,7 +147,7 @@ export default defineComponent({
|
|||||||
methods: {
|
methods: {
|
||||||
async onAddSharee(userId: string) {
|
async onAddSharee(userId: string) {
|
||||||
const sharee = { ...this.usersStore.getUserById(userId), isOwner: false };
|
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) {
|
async onRemoveSharee(userId: string) {
|
||||||
const user = this.usersStore.getUserById(userId);
|
const user = this.usersStore.getUserById(userId);
|
||||||
@@ -170,7 +170,7 @@ export default defineComponent({
|
|||||||
|
|
||||||
if (confirm === MODAL_CONFIRM) {
|
if (confirm === MODAL_CONFIRM) {
|
||||||
this.$emit(
|
this.$emit(
|
||||||
'change',
|
'update:modelValue',
|
||||||
this.credentialData.sharedWith.filter((sharee: IUser) => {
|
this.credentialData.sharedWith.filter((sharee: IUser) => {
|
||||||
return sharee.id !== user.id;
|
return sharee.id !== user.id;
|
||||||
}),
|
}),
|
||||||
|
|||||||
Reference in New Issue
Block a user