chore: Show error message if the AI process APIs fails (#7560)
Co-authored-by: Shivam Mishra <scm.mymail@gmail.com>
This commit is contained in:
@@ -121,7 +121,7 @@
|
|||||||
"GENERATING": "Generating...",
|
"GENERATING": "Generating...",
|
||||||
"CANCEL": "Cancel"
|
"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": {
|
"DELETE": {
|
||||||
"BUTTON_TEXT": "Delete",
|
"BUTTON_TEXT": "Delete",
|
||||||
|
|||||||
@@ -1,8 +1,10 @@
|
|||||||
import { mapGetters } from 'vuex';
|
import { mapGetters } from 'vuex';
|
||||||
import { OPEN_AI_EVENTS } from '../helper/AnalyticsHelper/events';
|
import { OPEN_AI_EVENTS } from '../helper/AnalyticsHelper/events';
|
||||||
import OpenAPI from '../api/integrations/openapi';
|
import OpenAPI from '../api/integrations/openapi';
|
||||||
|
import alertMixin from 'shared/mixins/alertMixin';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
mixins: [alertMixin],
|
||||||
mounted() {
|
mounted() {
|
||||||
this.fetchIntegrationsIfRequired();
|
this.fetchIntegrationsIfRequired();
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user