mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-28 04:25:03 +02:00
Add priority filter (#2114)
Signed-off-by: Dvinyanin Alexandr <dvinyanin.alexandr@gmail.com>
This commit is contained in:
@@ -13,15 +13,22 @@
|
||||
// limitations under the License.
|
||||
-->
|
||||
<script lang="ts">
|
||||
import { Asset, IntlString } from '@anticrm/platform'
|
||||
import { IssuePriority } from '@anticrm/tracker'
|
||||
import { Label } from '@anticrm/ui'
|
||||
import { Icon, Label } from '@anticrm/ui'
|
||||
import { issuePriorities } from '../../utils'
|
||||
|
||||
export let value: IssuePriority | undefined
|
||||
|
||||
let label: IntlString, icon: Asset
|
||||
$: if (value !== undefined) ({ label, icon } = issuePriorities[value])
|
||||
</script>
|
||||
|
||||
{#if value !== undefined}
|
||||
<div class="icon">
|
||||
<Icon {icon} size={'small'} />
|
||||
</div>
|
||||
<span class="overflow-label">
|
||||
<Label label={issuePriorities[value].label} />
|
||||
<Label {label} />
|
||||
</span>
|
||||
{/if}
|
||||
|
||||
Reference in New Issue
Block a user