mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
fix(editor): Fix broken types for globally defined components (no-changelog) (#16505)
Co-authored-by: Mutasem Aldmour <mutasem@n8n.io>
This commit is contained in:
@@ -4,6 +4,9 @@ import { computed } from 'vue';
|
||||
|
||||
import { useI18n } from '@n8n/design-system/composables/useI18n';
|
||||
|
||||
import N8nButton from '../N8nButton';
|
||||
import N8nIcon from '../N8nIcon';
|
||||
|
||||
const MIN_LINES = 4;
|
||||
|
||||
interface Props {
|
||||
@@ -106,11 +109,11 @@ const diffs = computed(() => {
|
||||
</div>
|
||||
<div :class="$style.actions">
|
||||
<div v-if="error">
|
||||
<n8n-icon icon="exclamation-triangle" color="danger" class="mr-5xs" />
|
||||
<N8nIcon icon="exclamation-triangle" color="danger" class="mr-5xs" />
|
||||
<span :class="$style.infoText">{{ t('codeDiff.couldNotReplace') }}</span>
|
||||
</div>
|
||||
<div v-else-if="replaced">
|
||||
<n8n-button
|
||||
<N8nButton
|
||||
type="secondary"
|
||||
size="mini"
|
||||
icon="undo"
|
||||
@@ -118,13 +121,13 @@ const diffs = computed(() => {
|
||||
@click="() => emit('undo')"
|
||||
>
|
||||
{{ t('codeDiff.undo') }}
|
||||
</n8n-button>
|
||||
<n8n-icon icon="check" color="success" class="ml-xs" />
|
||||
</N8nButton>
|
||||
<N8nIcon icon="check" color="success" class="ml-xs" />
|
||||
<span :class="$style.infoText" data-test-id="code-replaced-message">
|
||||
{{ t('codeDiff.codeReplaced') }}
|
||||
</span>
|
||||
</div>
|
||||
<n8n-button
|
||||
<N8nButton
|
||||
v-else
|
||||
:type="replacing ? 'secondary' : 'primary'"
|
||||
size="mini"
|
||||
@@ -133,7 +136,7 @@ const diffs = computed(() => {
|
||||
:disabled="!content || streaming"
|
||||
:loading="replacing"
|
||||
@click="() => emit('replace')"
|
||||
>{{ replacing ? t('codeDiff.replacing') : t('codeDiff.replaceMyCode') }}</n8n-button
|
||||
>{{ replacing ? t('codeDiff.replacing') : t('codeDiff.replaceMyCode') }}</N8nButton
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user