mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
feat(editor): Temporarily disable AI error helper (#9329)
This commit is contained in:
parent
0ee4b6c860
commit
35b983b6df
|
@ -45,16 +45,6 @@ const isLoadingErrorDebugging = ref(false);
|
||||||
const errorDebuggingMessage = ref('');
|
const errorDebuggingMessage = ref('');
|
||||||
const errorDebuggingFeedback = ref<'positive' | 'negative' | undefined>();
|
const errorDebuggingFeedback = ref<'positive' | 'negative' | undefined>();
|
||||||
|
|
||||||
const isErrorDebuggingEnabled = computed(() => {
|
|
||||||
return aiStore.isErrorDebuggingEnabled;
|
|
||||||
});
|
|
||||||
|
|
||||||
const showErrorDebuggingButton = computed(() => {
|
|
||||||
return (
|
|
||||||
isErrorDebuggingEnabled.value && !(isLoadingErrorDebugging.value || errorDebuggingMessage.value)
|
|
||||||
);
|
|
||||||
});
|
|
||||||
|
|
||||||
const displayCause = computed(() => {
|
const displayCause = computed(() => {
|
||||||
return JSON.stringify(props.error.cause).length < MAX_DISPLAY_DATA_SIZE;
|
return JSON.stringify(props.error.cause).length < MAX_DISPLAY_DATA_SIZE;
|
||||||
});
|
});
|
||||||
|
@ -428,17 +418,9 @@ function copySuccess() {
|
||||||
<div class="node-error-view">
|
<div class="node-error-view">
|
||||||
<div class="node-error-view__header">
|
<div class="node-error-view__header">
|
||||||
<div class="node-error-view__header-message">
|
<div class="node-error-view__header-message">
|
||||||
<div :class="showErrorDebuggingButton ? 'mt-4xs' : ''">
|
<div>
|
||||||
{{ getErrorMessage() }}
|
{{ getErrorMessage() }}
|
||||||
</div>
|
</div>
|
||||||
<N8nButton
|
|
||||||
v-if="showErrorDebuggingButton"
|
|
||||||
type="tertiary"
|
|
||||||
size="small"
|
|
||||||
@click="onDebugError"
|
|
||||||
>
|
|
||||||
{{ i18n.baseText('nodeErrorView.debugError.button') }}
|
|
||||||
</N8nButton>
|
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
v-if="error.description || error.context?.descriptionKey"
|
v-if="error.description || error.context?.descriptionKey"
|
||||||
|
|
Loading…
Reference in a new issue