TSK-1324: update popups and colors (#3152)

Signed-off-by: Alexander Platov <sas_lord@mail.ru>
This commit is contained in:
Alexander Platov
2023-05-10 18:40:50 +07:00
committed by GitHub
parent d486dea298
commit 93268d4dbc
45 changed files with 293 additions and 223 deletions
@@ -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}
@@ -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;