2022-03-31 08:32:42 +00:00
|
|
|
<script lang="ts">
|
|
|
|
import { Ref, Space } from '@anticrm/core'
|
2022-04-02 04:06:48 +00:00
|
|
|
import { Button, IconSearch, showPopup } from '@anticrm/ui'
|
2022-03-31 08:32:42 +00:00
|
|
|
import tracker from '../plugin'
|
|
|
|
import CreateIssue from './CreateIssue.svelte'
|
|
|
|
export let currentSpace: Ref<Space>
|
|
|
|
|
|
|
|
async function newIssue(target: EventTarget | null): Promise<void> {
|
2022-04-08 18:17:04 +00:00
|
|
|
showPopup(CreateIssue, { space: currentSpace }, 'top')
|
2022-03-31 08:32:42 +00:00
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
2022-04-02 04:06:48 +00:00
|
|
|
<div class="antiNav-subheader gap-2">
|
|
|
|
<div class="flex-grow text-md">
|
2022-03-31 08:32:42 +00:00
|
|
|
<Button
|
2022-04-02 04:06:48 +00:00
|
|
|
icon={tracker.icon.NewIssue}
|
2022-03-31 08:32:42 +00:00
|
|
|
label={tracker.string.NewIssue}
|
2022-04-02 04:06:48 +00:00
|
|
|
justify={'left'}
|
2022-03-31 08:32:42 +00:00
|
|
|
width={'100%'}
|
2022-04-02 04:06:48 +00:00
|
|
|
on:click={() => newIssue(null)}
|
2022-03-31 08:32:42 +00:00
|
|
|
/>
|
|
|
|
</div>
|
2022-04-02 04:06:48 +00:00
|
|
|
<Button icon={tracker.icon.Magnifier} on:click={async () => {}} />
|
2022-03-31 08:32:42 +00:00
|
|
|
</div>
|