platform/plugins/workbench-resources/src/components/NavFooter.svelte
Alexander Platov 591a521978
CSS cleaning packages & plugins (#4062)
Signed-off-by: Alexander Platov <sas_lord@mail.ru>
2023-11-27 13:54:39 +07:00

51 lines
1.6 KiB
Svelte

<!--
// Copyright © 2023 Hardcore Engineering Inc.
//
// Licensed under the Eclipse Public License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License. You may
// obtain a copy of the License at https://www.eclipse.org/legal/epl-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
//
// See the License for the specific language governing permissions and
// limitations under the License.
-->
<script lang="ts">
import setting from '@hcengineering/setting'
import { Icon, Label, showPopup } from '@hcengineering/ui'
import workbench from '../plugin'
import HelpAndSupport from './HelpAndSupport.svelte'
export let split: boolean = false
let selected: boolean = false
</script>
<div class="antiNav-footer-line" />
<div class="antiNav-footer-grower" />
<div class="antiNav-footer">
<slot />
{#if split}<div class="antiNav-space" />{/if}
<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-no-static-element-interactions -->
<div
class="antiNav-element"
class:selected
on:click={() => {
selected = true
showPopup(HelpAndSupport, {}, 'help-center', () => {
selected = false
})
}}
>
<div class="an-element__icon">
<Icon icon={setting.icon.Support} size={'small'} />
</div>
<span class="an-element__label">
<Label label={workbench.string.HelpAndSupport} />
</span>
</div>
</div>