mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-27 03:08:33 +02:00
Add count badge to DNS tab and make workspace settings tabs reorderable
This commit is contained in:
@@ -9,6 +9,7 @@ import { router } from '../lib/router';
|
|||||||
import { CopyIconButton } from './CopyIconButton';
|
import { CopyIconButton } from './CopyIconButton';
|
||||||
import { Banner } from './core/Banner';
|
import { Banner } from './core/Banner';
|
||||||
import { Button } from './core/Button';
|
import { Button } from './core/Button';
|
||||||
|
import { CountBadge } from './core/CountBadge';
|
||||||
import { InlineCode } from './core/InlineCode';
|
import { InlineCode } from './core/InlineCode';
|
||||||
import { PlainInput } from './core/PlainInput';
|
import { PlainInput } from './core/PlainInput';
|
||||||
import { HStack, VStack } from './core/Stacks';
|
import { HStack, VStack } from './core/Stacks';
|
||||||
@@ -78,10 +79,18 @@ export function WorkspaceSettingsDialog({ workspaceId, hide, tab }: Props) {
|
|||||||
value: TAB_DATA,
|
value: TAB_DATA,
|
||||||
label: 'Storage',
|
label: 'Storage',
|
||||||
},
|
},
|
||||||
{ value: TAB_DNS, label: 'DNS' },
|
|
||||||
...headersTab,
|
...headersTab,
|
||||||
...authTab,
|
...authTab,
|
||||||
|
{
|
||||||
|
value: TAB_DNS,
|
||||||
|
label: 'DNS',
|
||||||
|
rightSlot:
|
||||||
|
workspace.settingDnsOverrides.length > 0 ? (
|
||||||
|
<CountBadge count={workspace.settingDnsOverrides.length} />
|
||||||
|
) : null,
|
||||||
|
},
|
||||||
]}
|
]}
|
||||||
|
storageKey="workspace_settings_tabs_order"
|
||||||
>
|
>
|
||||||
<TabContent value={TAB_AUTH} className="overflow-y-auto h-full px-4">
|
<TabContent value={TAB_AUTH} className="overflow-y-auto h-full px-4">
|
||||||
<HttpAuthenticationEditor model={workspace} />
|
<HttpAuthenticationEditor model={workspace} />
|
||||||
|
|||||||
Reference in New Issue
Block a user