From fefee27eea5b3ba9752a7c587c1d2d93592e6ea5 Mon Sep 17 00:00:00 2001 From: Gareth Fuller Date: Thu, 18 Jul 2024 15:57:07 +0100 Subject: [PATCH] feat: new UI banner (#5886) * feat: Add new UI app banner * chore: Update message --- src/App.vue | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/src/App.vue b/src/App.vue index 26af782549..718d9cc651 100644 --- a/src/App.vue +++ b/src/App.vue @@ -25,8 +25,6 @@ import useAlerts, { AlertPriority, AlertType, } from './composables/useAlerts'; -import { useI18n } from 'vue-i18n'; -import useNetwork from './composables/useNetwork'; // Dynamic import of layout components: // it prevents the initial bundle from including all the layouts (and their unique dependencies) @@ -77,23 +75,20 @@ const { sidebarOpen } = useSidebar(); const { addAlert } = useAlerts(); const { handleThirdPartyModalToggle, isThirdPartyServicesModalVisible } = useThirdPartyServices(); -const { t } = useI18n(); -const router = useRouter(); -const { networkSlug } = useNetwork(); // OPTIONAL FEATURE ALERTS are enabled by featureAlertEnabled toggle const featureAlert: Alert = { - id: 'csp-alert', + id: 'new-ui-alert', priority: AlertPriority.HIGH, - label: t('poolWarnings.cspPoolVulnWarning.generalTitle'), // Add the new feature alert text here and set featureAlertEnabled to true to activate it - type: AlertType.ERROR, + label: 'Balancer has a new UI: Chain agnostic, speedy, and ready for v3', // Add the new feature alert text here and set featureAlertEnabled to true to activate it + type: AlertType.FEATURE, rememberClose: false, - actionLabel: 'Recovery exit', + actionLabel: 'Try zen', action: () => { - router.push({ name: 'recovery-exit', params: { networkSlug } }); + window.location.href = 'https://balancer.fi'; }, }; -const featureAlertEnabled = false; +const featureAlertEnabled = true; if (featureAlertEnabled) addAlert(featureAlert); /**