mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-10 11:47:42 +02:00
:Apply templates (#3799)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
@@ -78,11 +78,11 @@
|
||||
|
||||
$: queries = { all, active, backlog }
|
||||
$: mode = $resolvedLocationStore.query?.mode ?? undefined
|
||||
$: if (mode === undefined || queries[mode] === undefined) {
|
||||
$: if (mode === undefined || (queries as any)[mode] === undefined) {
|
||||
;[[mode]] = config
|
||||
}
|
||||
$: if (mode !== undefined) {
|
||||
query = { ...queries[mode] }
|
||||
query = { ...(queries as any)[mode] }
|
||||
modeSelectorProps = {
|
||||
config,
|
||||
mode,
|
||||
|
||||
@@ -182,10 +182,10 @@
|
||||
issueToUpdate.set(issue._id, upd)
|
||||
}
|
||||
for (const status in Object.keys(statusToUpdate)) {
|
||||
statusToUpdate[status] = { ref: status, create: true }
|
||||
statusToUpdate[status as Ref<Status>] = { ref: status as Ref<Status>, create: true }
|
||||
}
|
||||
for (const component in Object.keys(componentToUpdate)) {
|
||||
componentToUpdate[component] = { ref: component, create: true }
|
||||
componentToUpdate[component as Ref<Component>] = { ref: component as Ref<Component>, create: true }
|
||||
}
|
||||
|
||||
for (const issue of toMove) {
|
||||
|
||||
@@ -96,7 +96,7 @@
|
||||
<Label label={tracker.string.Replacement} />
|
||||
</div>
|
||||
{#each Object.keys(statusToUpdate) as status}
|
||||
{@const newStatus = statusToUpdate[status]}
|
||||
{@const newStatus = statusToUpdate[getStatusRef(status)]}
|
||||
<div class="flex-between min-h-11">
|
||||
<StatusRefPresenter value={getStatusRef(status)} space={currentProject} kind={'list-header'} />
|
||||
<IconArrowRight size={'small'} fill={'var(--theme-halfcontent-color)'} />
|
||||
@@ -107,6 +107,9 @@
|
||||
shape={'round-sm'}
|
||||
width={'min-content'}
|
||||
on:click={(event) => {
|
||||
if (newStatus === undefined) {
|
||||
return
|
||||
}
|
||||
showPopup(
|
||||
StatusReplacementPopup,
|
||||
{
|
||||
@@ -127,7 +130,9 @@
|
||||
}}
|
||||
>
|
||||
<span slot="content" class="flex-row-center pointer-events-none">
|
||||
<StatusRefPresenter space={targetProject._id} value={getStatusRef(newStatus.ref)} />
|
||||
{#if newStatus !== undefined}
|
||||
<StatusRefPresenter space={targetProject._id} value={getStatusRef(newStatus.ref)} />
|
||||
{/if}
|
||||
</span>
|
||||
</Button>
|
||||
</div>
|
||||
|
||||
@@ -64,11 +64,11 @@
|
||||
|
||||
$: queries = { assigned, created, subscribed }
|
||||
$: mode = $resolvedLocationStore.query?.mode ?? undefined
|
||||
$: if (mode === undefined || queries[mode] === undefined) {
|
||||
$: if (mode === undefined || (queries as any)[mode] === undefined) {
|
||||
;[[mode]] = config
|
||||
}
|
||||
$: if (mode !== undefined) {
|
||||
query = { ...queries[mode] }
|
||||
query = { ...(queries as any)[mode] }
|
||||
if (query?.space === undefined) {
|
||||
query = { ...query, space: { $nin: archived } }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user