refactor(editor): Improve linting for component and prop names (no-changelog) (#8169)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2023-12-28 09:49:58 +01:00
committed by GitHub
parent 639afcd7a5
commit 68cff4c59e
304 changed files with 3428 additions and 3516 deletions

View File

@@ -1,7 +1,7 @@
<template>
<div v-if="dialogVisible">
<el-dialog
:modelValue="dialogVisible"
:model-value="dialogVisible"
append-to-body
width="80%"
:title="`${$locale.baseText('textEdit.edit')} ${$locale
@@ -13,11 +13,11 @@
<n8n-input-label :label="$locale.nodeText().inputLabelDisplayName(parameter, path)">
<div @keydown.stop @keydown.esc="onKeyDownEsc()">
<n8n-input
ref="inputField"
v-model="tempValue"
type="textarea"
ref="inputField"
:placeholder="$locale.nodeText().placeholder(parameter, path)"
:readOnly="isReadOnly"
:read-only="isReadOnly"
:rows="15"
@update:modelValue="valueChanged"
/>
@@ -39,6 +39,20 @@ export default defineComponent({
tempValue: '', // el-input does not seem to work without v-model so add one
};
},
watch: {
async dialogVisible() {
if (this.dialogVisible === true) {
await nextTick();
(this.$refs.inputField as HTMLInputElement).focus();
}
},
modelValue(value: string) {
this.tempValue = value;
},
},
mounted() {
this.tempValue = this.modelValue as string;
},
methods: {
valueChanged(value: string) {
this.$emit('update:modelValue', value);
@@ -58,19 +72,5 @@ export default defineComponent({
return false;
},
},
mounted() {
this.tempValue = this.modelValue as string;
},
watch: {
async dialogVisible() {
if (this.dialogVisible === true) {
await nextTick();
(this.$refs.inputField as HTMLInputElement).focus();
}
},
modelValue(value: string) {
this.tempValue = value;
},
},
});
</script>