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:
Csaba Tuncsik
2022-12-13 14:00:20 +01:00
committed by GitHub
parent 7d7fe34f5d
commit 0b6d47086a
7 changed files with 38 additions and 39 deletions

View File

@@ -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 {