add design translations. Fix empty-dashboard message. Closes #4398
This commit is contained in:
1 parent
11e57d726a
commit
03ef78724b
56 files changed
+117
-59
No files matched your search
@@ -1,13 +1,18 @@
|
||||
import { Icon } from '@umami/react-zen';
|
||||
import { LinkButton } from '@/components/common/LinkButton';
|
||||
import { useNavigation } from '@/components/hooks';
|
||||
import { useMessages, useNavigation } from '@/components/hooks';
|
||||
import { LayoutDashboard } from '@/components/icons';
|
||||
|
||||
export function BoardDesignButton({ boardId }: { boardId: string }) {
|
||||
const { t, labels } = useMessages();
|
||||
const { renderUrl } = useNavigation();
|
||||
|
||||
return (
|
||||
<LinkButton href={renderUrl(`/boards/${boardId}/design`)} aria-label="Design" variant="quiet">
|
||||
<LinkButton
|
||||
href={renderUrl(`/boards/${boardId}/design`)}
|
||||
aria-label={t(labels.design)}
|
||||
variant="quiet"
|
||||
>
|
||||
<Icon>
|
||||
<LayoutDashboard />
|
||||
</Icon>
|
||||
|
||||
@@ -27,10 +27,10 @@ export function BoardViewHeader({
|
||||
<Row alignItems="center" gap>
|
||||
{showEntityBadge && entityBadge && <BoardEntityBadge {...entityBadge} />}
|
||||
{showActions && board?.id && (
|
||||
<>
|
||||
<LinkButton href={renderUrl(`/boards/${board.id}/design`, false)}>
|
||||
<IconLabel icon={<LayoutDashboard />}>Design</IconLabel>
|
||||
</LinkButton>
|
||||
<>
|
||||
<LinkButton href={renderUrl(`/boards/${board.id}/design`, false)}>
|
||||
<IconLabel icon={<LayoutDashboard />}>{t(labels.design)}</IconLabel>
|
||||
</LinkButton>
|
||||
<LinkButton href={renderUrl(`/boards/${board.id}/edit`, false)}>
|
||||
<IconLabel icon={<Edit />}>{t(labels.edit)}</IconLabel>
|
||||
</LinkButton>
|
||||
|
||||
@@ -11,7 +11,7 @@ export function DashboardViewHeader() {
|
||||
return (
|
||||
<PageHeader title={t(labels.dashboard)}>
|
||||
<LinkButton href={renderUrl('/dashboard/edit', false)}>
|
||||
<IconLabel icon={<LayoutDashboard />}>Design</IconLabel>
|
||||
<IconLabel icon={<LayoutDashboard />}>{t(labels.design)}</IconLabel>
|
||||
</LinkButton>
|
||||
</PageHeader>
|
||||
);
|
||||
|
||||
@@ -28,6 +28,7 @@ export const labels: Record<string, string> = {
|
||||
created: 'label.created',
|
||||
createdBy: 'label.created-by',
|
||||
edit: 'label.edit',
|
||||
design: 'label.design',
|
||||
name: 'label.name',
|
||||
manager: 'label.manager',
|
||||
member: 'label.member',
|
||||
|
||||
Reference in new issue
Block a user