TSK-990: Remove Back button in settings (#2875)

Signed-off-by: Vyacheslav Tumanov <me@slavatumanov.me>
This commit is contained in:
Vyacheslav Tumanov 2023-04-05 08:32:08 +05:00 committed by GitHub
parent 7fb22e669f
commit 1d6a3ca2f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 18 deletions

View File

@ -129,10 +129,7 @@
<Component <Component
is={category.component} is={category.component}
props={{ props={{
visibileNav, visibileNav
onFirstCategory: () => {
selectCategory(categories[0].name)
}
}} }}
/> />
{/if} {/if}

View File

@ -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