mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
fix(editor): Table view column limit tooltip (#4655)
* fix(editor): Table view column limit tooltip * fix(editor): lint fix * fix(editor): fix max column limit * fix(editor): code formatting
This commit is contained in:
parent
6b52e4b111
commit
3ac9ba3491
|
@ -69,8 +69,7 @@
|
|||
:stickyOffset="4"
|
||||
@drop="onDrop"
|
||||
>
|
||||
<!-- eslint-disable-next-line vue/v-slot-style -->
|
||||
<template v-slot="{ droppable, activeDrop }">
|
||||
<template #default="{ droppable, activeDrop }">
|
||||
<div
|
||||
:class="{
|
||||
[$style.listModeInputContainer]: isListMode,
|
||||
|
@ -104,17 +103,16 @@
|
|||
@focus="onInputFocus"
|
||||
@blur="onInputBlur"
|
||||
>
|
||||
<!-- eslint-disable-next-line vue/no-deprecated-slot-attribute -->
|
||||
<div v-if="isListMode" slot="suffix">
|
||||
<i
|
||||
:class="{
|
||||
['el-input__icon']: true,
|
||||
['el-icon-arrow-down']: true,
|
||||
[$style.selectIcon]: true,
|
||||
[$style.isReverse]: showResourceDropdown,
|
||||
}"
|
||||
></i>
|
||||
</div>
|
||||
<template v-if="isListMode" #suffix>
|
||||
<i
|
||||
:class="{
|
||||
['el-input__icon']: true,
|
||||
['el-icon-arrow-down']: true,
|
||||
[$style.selectIcon]: true,
|
||||
[$style.isReverse]: showResourceDropdown,
|
||||
}"
|
||||
/>
|
||||
</template>
|
||||
</n8n-input>
|
||||
</div>
|
||||
</template>
|
||||
|
|
|
@ -73,7 +73,10 @@
|
|||
<template #content>
|
||||
<div>
|
||||
<i18n path="dataMapping.tableView.tableColumnsExceeded.tooltip">
|
||||
<a @click="switchToJsonView">{{ $locale.baseText('dataMapping.tableView.tableColumnsExceeded.tooltip.link') }}</a>
|
||||
<template #columnLimit>{{ columnLimit }}</template>
|
||||
<template #link>
|
||||
<a @click="switchToJsonView">{{ $locale.baseText('dataMapping.tableView.tableColumnsExceeded.tooltip.link') }}</a>
|
||||
</template>
|
||||
</i18n>
|
||||
</div>
|
||||
</template>
|
||||
|
@ -212,6 +215,7 @@ export default mixins(externalHooks).extend({
|
|||
hoveringPath: null as null | string,
|
||||
mappingHintVisible: false,
|
||||
activeRow: null as number | null,
|
||||
columnLimit: MAX_COLUMNS_LIMIT,
|
||||
columnLimitExceeded: false,
|
||||
};
|
||||
},
|
||||
|
|
|
@ -364,8 +364,8 @@
|
|||
"dataMapping.jsonHint": "<img src='/static/json-mapping-gif.gif'/> Drag a JSON key onto <b>{name}</b> to map data",
|
||||
"dataMapping.mapKeyToField": "Map '{name}' to a field",
|
||||
"dataMapping.mapAllKeysToField": "Map every '{name}' to a field",
|
||||
"dataMapping.tableView.tableColumnsExceeded": "Some columns are hidden.",
|
||||
"dataMapping.tableView.tableColumnsExceeded.tooltip": "Your data has more than {columnLimit} columns so some are hidden. Switch to {0} to see all data.",
|
||||
"dataMapping.tableView.tableColumnsExceeded": "Some columns are hidden",
|
||||
"dataMapping.tableView.tableColumnsExceeded.tooltip": "Your data has more than {columnLimit} columns so some are hidden. Switch to {link} to see all data.",
|
||||
"dataMapping.tableView.tableColumnsExceeded.tooltip.link": "JSON view",
|
||||
"displayWithChange.cancelEdit": "Cancel Edit",
|
||||
"displayWithChange.clickToChange": "Click to Change",
|
||||
|
|
Loading…
Reference in a new issue