Add Create application icon, Panel header update (#504)

Signed-off-by: Alexander Platov <sas_lord@mail.ru>
This commit is contained in:
Alexander Platov
2021-12-03 10:04:35 +01:00
committed by GitHub
parent 5246bd769c
commit 8fe6389bae
10 changed files with 36 additions and 18 deletions
@@ -23,13 +23,13 @@
import type { Ref, Space, Client } from '@anticrm/core'
import type { Application, NavigatorModel, ViewConfiguration } from '@anticrm/workbench'
import { setClient, Avatar, createQuery } from '@anticrm/presentation'
import workbench from '@anticrm/workbench'
import workbench from '../plugin'
import Navigator from './Navigator.svelte'
import SpaceHeader from './SpaceHeader.svelte'
import SpaceView from './SpaceView.svelte'
import { AnyComponent, Component, location, Popup, showPopup, TooltipInstance } from '@anticrm/ui'
import { AnyComponent, Component, location, Popup, showPopup, TooltipInstance, closeTooltip } from '@anticrm/ui'
import core from '@anticrm/core'
import AccountPopup from './AccountPopup.svelte'
import AppItem from './AppItem.svelte'
@@ -94,7 +94,14 @@
<div class="panel-app">
<div class="flex-col">
<ActivityStatus status="active"/>
<AppItem icon={TopMenu} label={'Navigator'} selected={!visibileNav} action={async () => { visibileNav = !visibileNav }}/>
<AppItem
icon={TopMenu}
label={visibileNav ? workbench.string.HideMenu : workbench.string.ShowMenu}
action={async () => {
visibileNav = !visibileNav
closeTooltip()
}}
/>
</div>
<Applications {apps} active={currentApp}/>
<div class="flex-center" style="min-height: 6.25rem;">
+3 -1
View File
@@ -22,6 +22,8 @@ export default mergeIds(workbenchId, workbench, {
string: {
More: '' as IntlString,
Delete: '' as IntlString,
Create: '' as IntlString
Create: '' as IntlString,
ShowMenu: '' as IntlString,
HideMenu: '' as IntlString
}
})