From 2a6f3356c915eba3b16edb3b9f64460c831eda31 Mon Sep 17 00:00:00 2001 From: Muhsin Keloth Date: Mon, 24 Jul 2023 19:15:34 +0530 Subject: [PATCH] chore: Show error message if the AI process APIs fails (#7560) Co-authored-by: Shivam Mishra --- app/javascript/dashboard/i18n/locale/en/integrations.json | 2 +- app/javascript/dashboard/mixins/aiMixin.js | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/javascript/dashboard/i18n/locale/en/integrations.json b/app/javascript/dashboard/i18n/locale/en/integrations.json index c78c86bad..f2cbeea24 100644 --- a/app/javascript/dashboard/i18n/locale/en/integrations.json +++ b/app/javascript/dashboard/i18n/locale/en/integrations.json @@ -121,7 +121,7 @@ "GENERATING": "Generating...", "CANCEL": "Cancel" }, - "GENERATE_ERROR": "There was an error processing the content, please try again" + "GENERATE_ERROR": "There was an error processing the content, please verify your OpenAI API key and try again" }, "DELETE": { "BUTTON_TEXT": "Delete", diff --git a/app/javascript/dashboard/mixins/aiMixin.js b/app/javascript/dashboard/mixins/aiMixin.js index 6e6911dac..fb6d63611 100644 --- a/app/javascript/dashboard/mixins/aiMixin.js +++ b/app/javascript/dashboard/mixins/aiMixin.js @@ -1,8 +1,10 @@ import { mapGetters } from 'vuex'; import { OPEN_AI_EVENTS } from '../helper/AnalyticsHelper/events'; import OpenAPI from '../api/integrations/openapi'; +import alertMixin from 'shared/mixins/alertMixin'; export default { + mixins: [alertMixin], mounted() { this.fetchIntegrationsIfRequired(); },