Skip to content

Commit

Permalink
feat: add banner for redirect Real-Time Manager (#2219)
Browse files Browse the repository at this point in the history
  • Loading branch information
HerbertJulio authored Feb 25, 2025
1 parent c8199b8 commit f40b9e3
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion src/views/Home/HomeView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
import DialogOnboardingScheduling from '@/templates/dialogs-block/dialog-onboarding-scheduling.vue'
import CreateFormBlock from '@/templates/create-form-block'
import { useLayout } from '@/composables/use-layout'
import InlineMessage from 'primevue/inlinemessage'
import { getStaticUrlsByEnvironment } from '@/helpers'
/**@type {import('@/plugins/analytics/AnalyticsTrackerAdapter').AnalyticsTrackerAdapter} */
const tracker = inject('tracker')
Expand Down Expand Up @@ -39,7 +42,7 @@
const router = useRouter()
const route = useRoute()
const dialog = useDialog()
const { accountData } = useAccountStore()
const { accountData, isBannerVisible } = useAccountStore()
const user = accountData
const teams = ref([])
Expand Down Expand Up @@ -113,6 +116,12 @@
}
}
const openRTM = async () => {
const urlEOL = getStaticUrlsByEnvironment('managerEOL')
await tracker.product.clickedTo({ target: 'RTM' }).track()
window.location.href = `${urlEOL}?disableRedirect=true`
}
onMounted(async () => {
teams.value = await props.listTeamsService()
showOnboardingSchedulingDialog()
Expand All @@ -126,6 +135,25 @@
<ContentBlock>
<template #content>
<section class="w-full flex flex-col gap-6 lg:gap-8">
<InlineMessage
v-if="isBannerVisible"
class="p-3 gap-1"
severity="info"
data-testid="message-deprecation"
>
Azion Console is now the primary way to access Azion's platform.
<PrimeButton
label="Real-Time Manager (RTM)"
@click="openRTM"
iconPos="right"
class="p-0"
size="small"
link
/>
will be deprecated soon, and access will only be available for a limited time through this
link.
</InlineMessage>

<div
v-if="showExperimental"
class="w-full p-3 surface-border border rounded-md flex flex-col gap-4 justify-between items-center sm:flex-row sm:p-8 lg:gap-10"
Expand Down

0 comments on commit f40b9e3

Please sign in to comment.