mirror of
https://github.com/hcengineering/platform.git
synced 2025-05-30 12:20:00 +00:00
UBER-1099,-1100: Milestone fixes. (#3873)
Signed-off-by: Alexander Platov <sas_lord@mail.ru>
This commit is contained in:
parent
05e0971232
commit
1fd913a2b5
@ -532,6 +532,7 @@ input.search {
|
||||
.m-1 { margin: .25rem; }
|
||||
.m-3 { margin: .75rem; }
|
||||
|
||||
.pl-0-5 { padding-left: .125rem; }
|
||||
.pl-1 { padding-left: .25rem; }
|
||||
.pl-2 { padding-left: .5rem; }
|
||||
.pl-3 { padding-left: .75rem; }
|
||||
|
@ -17,7 +17,16 @@
|
||||
import { Data } from '@hcengineering/core'
|
||||
import { Milestone } from '@hcengineering/tracker'
|
||||
import { getClient } from '@hcengineering/presentation'
|
||||
import { Button, ButtonKind, ButtonSize, Icon, SelectPopup, eventToHTMLElement, showPopup } from '@hcengineering/ui'
|
||||
import {
|
||||
Button,
|
||||
ButtonKind,
|
||||
ButtonSize,
|
||||
Icon,
|
||||
SelectPopup,
|
||||
eventToHTMLElement,
|
||||
showPopup,
|
||||
Label
|
||||
} from '@hcengineering/ui'
|
||||
import { defaultMilestoneStatuses, milestoneStatusAssets } from '../../utils'
|
||||
import tracker from '../../plugin'
|
||||
|
||||
@ -72,6 +81,11 @@
|
||||
>
|
||||
<Icon {icon} {size} />
|
||||
</button>
|
||||
{:else if kind === 'list-header'}
|
||||
<div class="flex-row-center pl-0-5">
|
||||
<Icon {icon} {size} />
|
||||
<span class="overflow-label ml-1-5"><Label {label} /></span>
|
||||
</div>
|
||||
{:else}
|
||||
<Button
|
||||
{label}
|
||||
|
@ -35,7 +35,7 @@
|
||||
<Card
|
||||
canSave
|
||||
label={tracker.string.MoveAndDeleteMilestone}
|
||||
labelProps={{ newMilestone: selectedMilestoneLabel, deleteMilestone: milestones.map((p) => p.label) }}
|
||||
labelProps={{ newMilestone: selectedMilestoneLabel, deleteMilestone: milestones.map((p) => p.label).join(', ') }}
|
||||
okLabel={tracker.string.Delete}
|
||||
okAction={() => moveAndDeleteMilestone(selectedMilestone)}
|
||||
on:close
|
||||
|
Loading…
Reference in New Issue
Block a user