mirror of
https://github.com/hcengineering/platform.git
synced 2025-02-08 20:07:36 +00:00
25 lines
740 B
Svelte
25 lines
740 B
Svelte
<script lang="ts">
|
|
import { Ref, Space } from '@anticrm/core'
|
|
import { Button, IconSearch, showPopup } from '@anticrm/ui'
|
|
import tracker from '../plugin'
|
|
import CreateIssue from './CreateIssue.svelte'
|
|
export let currentSpace: Ref<Space>
|
|
|
|
async function newIssue(target: EventTarget | null): Promise<void> {
|
|
showPopup(CreateIssue, { space: currentSpace }, target as HTMLElement)
|
|
}
|
|
</script>
|
|
|
|
<div class="antiNav-subheader gap-2">
|
|
<div class="flex-grow text-md">
|
|
<Button
|
|
icon={tracker.icon.NewIssue}
|
|
label={tracker.string.NewIssue}
|
|
justify={'left'}
|
|
width={'100%'}
|
|
on:click={() => newIssue(null)}
|
|
/>
|
|
</div>
|
|
<Button icon={tracker.icon.Magnifier} on:click={async () => {}} />
|
|
</div>
|