mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-21 07:46:24 +00:00
TSK-990: Remove Back button in settings (#2875)
Signed-off-by: Vyacheslav Tumanov <me@slavatumanov.me>
This commit is contained in:
parent
7fb22e669f
commit
1d6a3ca2f2
@ -129,10 +129,7 @@
|
|||||||
<Component
|
<Component
|
||||||
is={category.component}
|
is={category.component}
|
||||||
props={{
|
props={{
|
||||||
visibileNav,
|
visibileNav
|
||||||
onFirstCategory: () => {
|
|
||||||
selectCategory(categories[0].name)
|
|
||||||
}
|
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
{/if}
|
{/if}
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
import { AccountRole, getCurrentAccount } from '@hcengineering/core'
|
import { AccountRole, getCurrentAccount } from '@hcengineering/core'
|
||||||
import { createQuery } from '@hcengineering/presentation'
|
import { createQuery } from '@hcengineering/presentation'
|
||||||
import setting, { SettingsCategory } from '@hcengineering/setting'
|
import setting, { SettingsCategory } from '@hcengineering/setting'
|
||||||
import ui, { Button, Component, getCurrentLocation, IconBack, Label, location, navigate } from '@hcengineering/ui'
|
import { Component, getCurrentLocation, Label, location, navigate } from '@hcengineering/ui'
|
||||||
import { onDestroy } from 'svelte'
|
import { onDestroy } from 'svelte'
|
||||||
import CategoryElement from './CategoryElement.svelte'
|
import CategoryElement from './CategoryElement.svelte'
|
||||||
|
|
||||||
@ -28,7 +28,6 @@
|
|||||||
const account = getCurrentAccount() as EmployeeAccount
|
const account = getCurrentAccount() as EmployeeAccount
|
||||||
|
|
||||||
export let visibileNav = true
|
export let visibileNav = true
|
||||||
export let onFirstCategory: () => void
|
|
||||||
|
|
||||||
const settingsQuery = createQuery()
|
const settingsQuery = createQuery()
|
||||||
settingsQuery.query(
|
settingsQuery.query(
|
||||||
@ -64,18 +63,9 @@
|
|||||||
{#if visibileNav}
|
{#if visibileNav}
|
||||||
<div class="antiPanel-navigator filled indent">
|
<div class="antiPanel-navigator filled indent">
|
||||||
<div class="antiNav-header">
|
<div class="antiNav-header">
|
||||||
<div class="flex-row-center gap-2">
|
<span class="fs-title overflow-label">
|
||||||
<Button
|
<Label label={setting.string.WorkspaceSetting} />
|
||||||
kind={'link'}
|
</span>
|
||||||
icon={IconBack}
|
|
||||||
label={ui.string.Back}
|
|
||||||
on:click={() => onFirstCategory()}
|
|
||||||
size={'small'}
|
|
||||||
/>
|
|
||||||
<span class="fs-title overflow-label">
|
|
||||||
<Label label={setting.string.WorkspaceSetting} />
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
{#each categories as category}
|
{#each categories as category}
|
||||||
<CategoryElement
|
<CategoryElement
|
||||||
|
Loading…
Reference in New Issue
Block a user