Skip to content

Commit

Permalink
chore: set the 'item' label temporarily in Title bar
Browse files Browse the repository at this point in the history
it has to be fixed in later commits
  • Loading branch information
malkja committed Sep 20, 2024
1 parent 5bb41a1 commit 625f681
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/components/header/TitleBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
class="t-px-2 text-gray-500 dark:text-gray-300"
name="chevronRight"
/>
<span v-if="item">{{ getPageLabel(configStore.config) }} {{ item.n }}</span>
<span v-if="item">{{ $t('item') }} {{ item.n }}</span>
</h2>
</template>
<template v-else>
Expand All @@ -32,7 +32,7 @@
<span
v-if="item"
class="t-align-middle"
>{{ getPageLabel(configStore.config) }} {{ item.n }}</span>
>{{ $t('item') }} {{ item.n }}</span>
</h1>
</template>
</template>
Expand All @@ -51,7 +51,7 @@ import { useConfigStore } from '@/stores/config';
import { useContentsStore } from '@/stores/contents'
import BaseIcon from '@/components/base/BaseIcon.vue';
import { useI18n } from 'vue-i18n';
import { isAhiqarWebsite } from '@/utils/translations';
import { areNavButtonsLabelsInConfig } from '@/utils/translations';
export interface Props {
item: Item
Expand All @@ -70,7 +70,8 @@ const collectionTitle = computed<string | null>(() => contentStore.collectionTit
const manifestTitle = computed<string | undefined>(() => contentStore.manifest?.label );
function getPageLabel(config): string {
return isAhiqarWebsite(config) ? t('sheet') : t('item')
return ''
//return areNavButtonsLabelsInConfig(config) ? t('sheet') : t('item')
}
</script>

0 comments on commit 625f681

Please sign in to comment.