mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-19 11:01:15 +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,7 +2,7 @@
|
||||
<Modal
|
||||
width="700px"
|
||||
:title="$locale.baseText('importCurlModal.title')"
|
||||
:eventBus="modalBus"
|
||||
:event-bus="modalBus"
|
||||
:name="IMPORT_CURL_MODAL_KEY"
|
||||
:center="true"
|
||||
>
|
||||
@@ -10,13 +10,13 @@
|
||||
<div :class="$style.container">
|
||||
<n8n-input-label :label="$locale.baseText('importCurlModal.input.label')" color="text-dark">
|
||||
<n8n-input
|
||||
:modelValue="curlCommand"
|
||||
ref="input"
|
||||
:model-value="curlCommand"
|
||||
type="textarea"
|
||||
:rows="5"
|
||||
:placeholder="$locale.baseText('importCurlModal.input.placeholder')"
|
||||
@update:modelValue="onInput"
|
||||
@focus="$event.target.select()"
|
||||
ref="input"
|
||||
/>
|
||||
</n8n-input-label>
|
||||
</div>
|
||||
@@ -29,9 +29,9 @@
|
||||
/>
|
||||
<div>
|
||||
<n8n-button
|
||||
@click="importCurlCommand"
|
||||
float="right"
|
||||
:label="$locale.baseText('importCurlModal.button.label')"
|
||||
@click="importCurlCommand"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
@@ -77,6 +77,12 @@ export default defineComponent({
|
||||
return this.ndvStore.activeNode;
|
||||
},
|
||||
},
|
||||
mounted() {
|
||||
this.curlCommand = this.uiStore.getCurlCommand || '';
|
||||
setTimeout(() => {
|
||||
(this.$refs.input as HTMLTextAreaElement).focus();
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
closeDialog(): void {
|
||||
this.modalBus.emit('close');
|
||||
@@ -176,12 +182,6 @@ export default defineComponent({
|
||||
});
|
||||
},
|
||||
},
|
||||
mounted() {
|
||||
this.curlCommand = this.uiStore.getCurlCommand || '';
|
||||
setTimeout(() => {
|
||||
(this.$refs.input as HTMLTextAreaElement).focus();
|
||||
});
|
||||
},
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user