fix(editor): Improve commit modal user facing messaging (#12161)

This commit is contained in:
Raúl Gómez Morales
2024-12-17 16:24:50 +01:00
committed by GitHub
parent 9180b46b52
commit ad39243982
8 changed files with 207 additions and 50 deletions

View File

@@ -10,6 +10,7 @@ interface NoticeProps {
theme?: 'success' | 'warning' | 'danger' | 'info';
content?: string;
fullContent?: string;
compact?: boolean;
}
const props = withDefaults(defineProps<NoticeProps>(), {
@@ -17,6 +18,7 @@ const props = withDefaults(defineProps<NoticeProps>(), {
theme: 'warning',
content: '',
fullContent: '',
compact: true,
});
const emit = defineEmits<{
@@ -68,7 +70,7 @@ const onClick = (event: MouseEvent) => {
<template>
<div :id="id" :class="classes" role="alert" @click="onClick">
<div class="notice-content">
<N8nText size="small" :compact="true">
<N8nText size="small" :compact="compact">
<slot>
<span
:id="`${id}-content`"