From 9f0be0431df6b1c090a79a2bc3b7dbab4f94a44d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Agust=C3=ADn=20Busso?= <90727999+agustinbusso@users.noreply.github.com> Date: Fri, 6 Oct 2023 14:44:58 -0300 Subject: [PATCH] Fix loader --- src/components/welcome/WelcomeMessage.vue | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/components/welcome/WelcomeMessage.vue b/src/components/welcome/WelcomeMessage.vue index b1e4359a0..777c6778c 100644 --- a/src/components/welcome/WelcomeMessage.vue +++ b/src/components/welcome/WelcomeMessage.vue @@ -14,7 +14,7 @@ {{ aiProcessButtonSubtitle }}
- + {{ aiProcessButtonSubtitle }} @@ -70,6 +70,13 @@ export default { return ''; }, + showSessionLoader() { + if (!(!this.promptSessionId || this.promptSessionId === '') && this.lastSession.firstname === undefined) { + return true; + } + + return false; + }, aiProcessButtonTitle() { if (!this.promptSessionId || this.promptSessionId === '') { return this.$t('Create a process with AI'); @@ -81,10 +88,6 @@ export default { return this.$t('Kick-start an AI generated process'); } - if (this.lastSession.firstname === undefined) { - return null; - } - return `${this.lastSession.firstname} ${this.lastSession.lastnameInitials}. | ${this.formatDateTime(this.lastSession.requestDate)}`; }, },