-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #430 from gobitfly/BIDS-2900/SharedDasbhoardsView
Bids 2900/shared dasbhoards view
- Loading branch information
Showing
6 changed files
with
63 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<script lang="ts" setup> | ||
import { COOKIE_KEY, type CookiesPreference } from '~/types/cookie' | ||
const cookiePreference = useCookie<CookiesPreference>(COOKIE_KEY.COOKIES_PREFERENCE, { default: () => undefined }) | ||
const { isShared } = useDashboardKey() | ||
const { t: $t } = useI18n() | ||
const route = useRoute() | ||
const visible = computed(() => isShared.value && cookiePreference.value !== undefined) | ||
</script> | ||
|
||
<template> | ||
<Dialog | ||
v-model:visible="visible" | ||
:dismissable-mask="false" | ||
:draggable="false" | ||
:close-on-escape="false" | ||
position="bottom" | ||
> | ||
<div class="dialog-container"> | ||
{{ $t('dashboard.shared_modal.text') }} | ||
<BcLink :to="`/dashboard`" :replace="route.path.startsWith('/dashboard')"> | ||
<Button class="get-started"> | ||
{{ $t('dashboard.shared_modal.get_started') }} | ||
</Button> | ||
</BcLink> | ||
</div> | ||
</Dialog> | ||
</template> | ||
|
||
<style lang="scss" scoped> | ||
@use "~/assets/css/fonts.scss"; | ||
.dialog-container { | ||
display: flex; | ||
align-items: center; | ||
gap: var(--padding-large); | ||
.get-started { | ||
min-width: 120px; | ||
} | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters