mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-22 09:35:00 +02:00
TSK-1324: update popups and colors (#3152)
Signed-off-by: Alexander Platov <sas_lord@mail.ru>
This commit is contained in:
@@ -117,7 +117,7 @@
|
||||
{params?.subTitlePostfix}
|
||||
</span>
|
||||
</div>
|
||||
<div class="flex-between">
|
||||
<div class="flex-between gap-2">
|
||||
<Button label={tracker.string.ViewIssue} on:click={handleIssueOpened} />
|
||||
<Button icon={tracker.icon.CopyURL} label={tracker.string.CopyIssueUrl} on:click={handleCopyUrl} />
|
||||
</div>
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
|
||||
const client = getClient()
|
||||
const dispatch = createEventDispatcher()
|
||||
const prioritiesInfo = defaultPriorities.map((p) => ({ id: p, ...issuePriorities[p] }))
|
||||
let selectedPriority: IssuePriority | undefined = value.priority
|
||||
|
||||
const handlePriorityEditorOpened = (event: MouseEvent) => {
|
||||
event.stopPropagation()
|
||||
@@ -64,12 +64,21 @@
|
||||
return
|
||||
}
|
||||
|
||||
selectedPriority = newPriority
|
||||
dispatch('change', newPriority)
|
||||
|
||||
if ('_class' in value) {
|
||||
await client.update(value, { priority: newPriority })
|
||||
}
|
||||
}
|
||||
|
||||
$: prioritiesInfo = defaultPriorities.map((p) => {
|
||||
return {
|
||||
id: p,
|
||||
isSelected: selectedPriority === p,
|
||||
...issuePriorities[p]
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
||||
{#if value}
|
||||
|
||||
+1
-1
@@ -132,7 +132,7 @@
|
||||
color: var(--theme-error-color) !important;
|
||||
}
|
||||
.showWarning {
|
||||
color: var(--warning-color) !important;
|
||||
color: var(--theme-warning-color) !important;
|
||||
}
|
||||
.romColor {
|
||||
color: var(--theme-content-color) !important;
|
||||
|
||||
Reference in New Issue
Block a user