mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
refactor(editor): Apply Prettier (no-changelog) (#4920)
* ⚡ Adjust `format` script * 🔥 Remove exemption for `editor-ui` * 🎨 Prettify * 👕 Fix lint
This commit is contained in:
@@ -30,7 +30,7 @@
|
||||
:errorHighlight="showRequiredErrors"
|
||||
:isForCredential="true"
|
||||
:eventSource="eventSource"
|
||||
:hint="!showRequiredErrors? hint: ''"
|
||||
:hint="!showRequiredErrors ? hint : ''"
|
||||
@focus="onFocus"
|
||||
@blur="onBlur"
|
||||
@textInput="valueChanged"
|
||||
@@ -39,7 +39,13 @@
|
||||
<div :class="$style.errors" v-if="showRequiredErrors">
|
||||
<n8n-text color="danger" size="small">
|
||||
{{ $locale.baseText('parameterInputExpanded.thisFieldIsRequired') }}
|
||||
<n8n-link v-if="documentationUrl" :to="documentationUrl" size="small" :underline="true" @click="onDocumentationUrlClick">
|
||||
<n8n-link
|
||||
v-if="documentationUrl"
|
||||
:to="documentationUrl"
|
||||
size="small"
|
||||
:underline="true"
|
||||
@click="onDocumentationUrlClick"
|
||||
>
|
||||
{{ $locale.baseText('parameterInputExpanded.openDocs') }}
|
||||
</n8n-link>
|
||||
</n8n-text>
|
||||
@@ -68,8 +74,7 @@ export default Vue.extend({
|
||||
parameter: {
|
||||
type: Object as PropType<INodeProperties>,
|
||||
},
|
||||
value: {
|
||||
},
|
||||
value: {},
|
||||
showValidationWarnings: {
|
||||
type: Boolean,
|
||||
},
|
||||
@@ -88,9 +93,7 @@ export default Vue.extend({
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
...mapStores(
|
||||
useWorkflowsStore,
|
||||
),
|
||||
...mapStores(useWorkflowsStore),
|
||||
showRequiredErrors(): boolean {
|
||||
if (!this.$props.parameter.required) {
|
||||
return false;
|
||||
@@ -115,8 +118,11 @@ export default Vue.extend({
|
||||
|
||||
return this.$locale.credText().hint(this.parameter);
|
||||
},
|
||||
isValueExpression (): boolean {
|
||||
return isValueExpression(this.parameter, this.value as string | INodeParameterResourceLocator);
|
||||
isValueExpression(): boolean {
|
||||
return isValueExpression(
|
||||
this.parameter,
|
||||
this.value as string | INodeParameterResourceLocator,
|
||||
);
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
@@ -130,7 +136,7 @@ export default Vue.extend({
|
||||
onMenuExpanded(expanded: boolean) {
|
||||
this.menuExpanded = expanded;
|
||||
},
|
||||
optionSelected (command: string) {
|
||||
optionSelected(command: string) {
|
||||
if (this.$refs.param) {
|
||||
(this.$refs.param as Vue).$emit('optionSelected', command);
|
||||
}
|
||||
@@ -138,7 +144,7 @@ export default Vue.extend({
|
||||
valueChanged(parameterData: IUpdateInformation) {
|
||||
this.$emit('change', parameterData);
|
||||
},
|
||||
onDocumentationUrlClick (): void {
|
||||
onDocumentationUrlClick(): void {
|
||||
this.$telemetry.track('User clicked credential modal docs link', {
|
||||
docs_link: this.documentationUrl,
|
||||
source: 'field',
|
||||
@@ -150,10 +156,10 @@ export default Vue.extend({
|
||||
</script>
|
||||
|
||||
<style lang="scss" module>
|
||||
.errors {
|
||||
margin-top: var(--spacing-2xs);
|
||||
}
|
||||
.hint {
|
||||
margin-top: var(--spacing-4xs);
|
||||
}
|
||||
.errors {
|
||||
margin-top: var(--spacing-2xs);
|
||||
}
|
||||
.hint {
|
||||
margin-top: var(--spacing-4xs);
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user