2018-11-12 18:28:43 -08:00
|
|
|
<svelte:head>
|
2020-11-29 14:13:27 -08:00
|
|
|
<title>{title}</title>
|
2018-11-12 18:28:43 -08:00
|
|
|
</svelte:head>
|
|
|
|
<script>
|
|
|
|
import { store } from '../_store/store'
|
2020-11-29 14:13:27 -08:00
|
|
|
import { formatIntl } from '../_utils/formatIntl'
|
2018-11-12 18:28:43 -08:00
|
|
|
|
|
|
|
export default {
|
|
|
|
data: () => ({
|
|
|
|
settingsPage: false
|
|
|
|
}),
|
|
|
|
store: () => store,
|
|
|
|
computed: {
|
2020-11-29 14:13:27 -08:00
|
|
|
showInstanceName: ({ $isUserLoggedIn, settingsPage, $currentInstance }) => (
|
|
|
|
!!($isUserLoggedIn && !settingsPage && $currentInstance)
|
2018-11-12 18:28:43 -08:00
|
|
|
),
|
2020-11-29 14:13:27 -08:00
|
|
|
title: ({ showInstanceName, $currentInstance, $hasNotifications, $numberOfNotifications, name }) => {
|
|
|
|
return formatIntl('intl.pageTitle', {
|
|
|
|
showInstanceName,
|
|
|
|
instanceName: $currentInstance,
|
|
|
|
hasNotifications: $hasNotifications,
|
|
|
|
count: $numberOfNotifications,
|
|
|
|
name
|
|
|
|
})
|
|
|
|
}
|
2018-11-12 18:28:43 -08:00
|
|
|
}
|
|
|
|
}
|
2018-12-30 14:51:03 -08:00
|
|
|
</script>
|