mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
fix(editor): Schema view render empty data (#4902)
* fix(editor): Schema view render empty data * fix(editor): Schema view switch n8n-alert with n8n-info-tip * Revert "fix(editor): Schema view render empty data" This reverts commit 0294b5e8 for Alert component * chore(editor): code styling fix * fix(editor): Table view empty data hint * Revert "fix(editor): Table view empty data hint" This reverts commit d42dabf2c5064ee09b3cfb267cadfd2bc0515eab.
This commit is contained in:
@@ -9,6 +9,7 @@ import { runExternalHook } from "@/mixins/externalHooks";
|
||||
import { telemetry } from "@/plugins/telemetry";
|
||||
import { IDataObject } from "n8n-workflow";
|
||||
import { getSchema, isEmpty, mergeDeep } from "@/utils";
|
||||
import { i18n } from '@/plugins/i18n';
|
||||
|
||||
type Props = {
|
||||
data: IDataObject[]
|
||||
@@ -71,7 +72,7 @@ const onDragEnd = (el: HTMLElement) => {
|
||||
|
||||
<template>
|
||||
<div :class="$style.schemaWrapper">
|
||||
<div v-if="isDataEmpty" />
|
||||
<n8n-info-tip v-if="isDataEmpty">{{ i18n.baseText('dataMapping.schemaView.emptyData') }}</n8n-info-tip>
|
||||
<draggable
|
||||
v-else
|
||||
type="mapping"
|
||||
@@ -114,6 +115,10 @@ const onDragEnd = (el: HTMLElement) => {
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
background-color: var(--color-background-base);
|
||||
|
||||
> div[class*="info"] {
|
||||
padding: 0 var(--spacing-s);
|
||||
}
|
||||
}
|
||||
|
||||
.schema {
|
||||
|
||||
Reference in New Issue
Block a user