mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
refactor(editor): Improve linting for component and prop names (no-changelog) (#8169)
This commit is contained in:
committed by
GitHub
parent
639afcd7a5
commit
68cff4c59e
@@ -2,10 +2,10 @@
|
||||
<Modal
|
||||
width="460px"
|
||||
:title="modalTitle"
|
||||
:eventBus="modalBus"
|
||||
:event-bus="modalBus"
|
||||
:name="WORKFLOW_SHARE_MODAL_KEY"
|
||||
:center="true"
|
||||
:beforeClose="onCloseModal"
|
||||
:before-close="onCloseModal"
|
||||
>
|
||||
<template #content>
|
||||
<div v-if="!isSharingEnabled" :class="$style.container">
|
||||
@@ -36,7 +36,7 @@
|
||||
class="mb-s"
|
||||
size="large"
|
||||
:users="usersList"
|
||||
:currentUserId="currentUser.id"
|
||||
:current-user-id="currentUser.id"
|
||||
:placeholder="$locale.baseText('workflows.shareModal.select.placeholder')"
|
||||
data-test-id="workflow-sharing-modal-users-select"
|
||||
@update:modelValue="onAddSharee"
|
||||
@@ -48,14 +48,14 @@
|
||||
<n8n-users-list
|
||||
:actions="[]"
|
||||
:users="sharedWithList"
|
||||
:currentUserId="currentUser.id"
|
||||
:current-user-id="currentUser.id"
|
||||
:delete-label="$locale.baseText('workflows.shareModal.list.delete')"
|
||||
:readonly="!workflowPermissions.updateSharing"
|
||||
>
|
||||
<template #actions="{ user }">
|
||||
<n8n-select
|
||||
:class="$style.roleSelect"
|
||||
modelValue="editor"
|
||||
model-value="editor"
|
||||
size="small"
|
||||
@update:modelValue="onRoleAction(user, $event)"
|
||||
>
|
||||
@@ -151,7 +151,7 @@ import type { BaseTextKey } from '@/plugins/i18n';
|
||||
import { isNavigationFailure } from 'vue-router';
|
||||
|
||||
export default defineComponent({
|
||||
name: 'workflow-share-modal',
|
||||
name: 'WorkflowShareModal',
|
||||
components: {
|
||||
Modal,
|
||||
},
|
||||
@@ -253,6 +253,16 @@ export default defineComponent({
|
||||
);
|
||||
},
|
||||
},
|
||||
watch: {
|
||||
workflow(workflow) {
|
||||
if (workflow.sharedWith) {
|
||||
this.sharedWith = workflow.sharedWith;
|
||||
}
|
||||
},
|
||||
},
|
||||
mounted() {
|
||||
void this.initialize();
|
||||
},
|
||||
methods: {
|
||||
async onSave() {
|
||||
if (this.loading) {
|
||||
@@ -472,16 +482,6 @@ export default defineComponent({
|
||||
this.loading = false;
|
||||
},
|
||||
},
|
||||
mounted() {
|
||||
void this.initialize();
|
||||
},
|
||||
watch: {
|
||||
workflow(workflow) {
|
||||
if (workflow.sharedWith) {
|
||||
this.sharedWith = workflow.sharedWith;
|
||||
}
|
||||
},
|
||||
},
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user