mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-22 19:11:33 +03:00
Add priority filter (#2114)
Signed-off-by: Dvinyanin Alexandr <dvinyanin.alexandr@gmail.com>
This commit is contained in:
parent
190954e747
commit
0555aa402e
@ -13,6 +13,7 @@ Tracker:
|
||||
- Issue state history.
|
||||
- Subissue issue popup.
|
||||
- Label support
|
||||
- Priority filter
|
||||
|
||||
Lead:
|
||||
|
||||
|
@ -409,6 +409,10 @@ export function createModel (builder: Builder): void {
|
||||
presenter: tracker.component.PriorityPresenter
|
||||
})
|
||||
|
||||
builder.mixin(tracker.class.TypeIssuePriority, core.class.Class, view.mixin.AttributeFilter, {
|
||||
component: view.component.ValueFilter
|
||||
})
|
||||
|
||||
builder.mixin(tracker.class.IssueStatus, core.class.Class, view.mixin.AttributePresenter, {
|
||||
presenter: tracker.component.StatusPresenter
|
||||
})
|
||||
|
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user