Update
This commit is contained in:
rodič
09276af7fc
revize
0280faeba9
|
@ -49,12 +49,18 @@
|
|||
const map = {
|
||||
speaker: { col: "speakers", url: "/lide?id=" },
|
||||
partner: { col: "partners", suffix: "partner" },
|
||||
team: { col: "team", withoutAvatar: true },
|
||||
};
|
||||
const ltype = map[link.type];
|
||||
if (!ltype) {
|
||||
return null;
|
||||
}
|
||||
const item = $bundle.spec[ltype.col].find((i) => i.id === link.id);
|
||||
let item = null;
|
||||
if (link.type === "team") {
|
||||
item = $bundle.spec.team.persons[link.id];
|
||||
} else {
|
||||
item = $bundle.spec[ltype.col].find((i) => i.id === link.id);
|
||||
}
|
||||
if (!item) {
|
||||
return "not exists!";
|
||||
}
|
||||
|
@ -63,6 +69,7 @@
|
|||
url: ltype.url ? ltype.url + link.id : null,
|
||||
col: ltype.col,
|
||||
suffix: ltype.suffix,
|
||||
withoutAvatar: ltype.withoutAvatar,
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -157,9 +164,12 @@
|
|||
? "hover:bg-blue-500/10"
|
||||
: "bg-yellow-400/20 hover:bg-yello-600/20"}
|
||||
>
|
||||
<td class="border-b font-bold">{ticketTypes[claim.type].title}</td>
|
||||
<td class="border-b font-bold"
|
||||
>{ticketTypes[claim.type].title}</td
|
||||
>
|
||||
<td class="border-b">
|
||||
<a href={claim.linkInfo.url}>
|
||||
{#if !claim.linkInfo.withoutAvatar}
|
||||
<div class="inline-block align-middle">
|
||||
<Avatar
|
||||
speaker={$bundle.spec[claim.linkInfo.col].find(
|
||||
|
@ -169,6 +179,7 @@
|
|||
size="extra-small"
|
||||
/>
|
||||
</div>
|
||||
{/if}
|
||||
{claim.linkInfo.title}
|
||||
{#if claim.linkInfo.suffix} ({claim.linkInfo
|
||||
.suffix}){/if}
|
||||
|
|
|
@ -416,7 +416,7 @@
|
|||
</div>
|
||||
{/if}
|
||||
<div class="flex gap-3 text-sm">
|
||||
{#if (ticket.type === "speaker" || ticket.type === "organizator") && ticket.link && ticket.link.id}
|
||||
{#if (ticket.type === "speaker" || ticket.type === "organizator") && ticket.link && ticket.link.id && ticket.link.type === "speaker"}
|
||||
<a href="/lide?id={ticket.link.id}"
|
||||
><Avatar
|
||||
speaker={$bundle.spec.speakers.find(
|
||||
|
|
|
@ -32,6 +32,9 @@
|
|||
if (link.type === "partner") {
|
||||
return $bundle.spec.partners.find((s) => s.id === link.id);
|
||||
}
|
||||
if (link.type === "team") {
|
||||
return $bundle.spec.team.persons[link.id];
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
|
@ -184,13 +187,12 @@
|
|||
<div class="mt-2">
|
||||
<span class="">{ticketTypeInfo ? ticketTypeInfo.title : ""}</span>
|
||||
{#if target}
|
||||
(<Avatar
|
||||
({#if target.photos}<Avatar
|
||||
speaker={target}
|
||||
size="extra-small"
|
||||
inline="true"
|
||||
col={ticketTypeInfo.col}
|
||||
/>
|
||||
<a href="/lide?id={target.id}">{target.name}</a>)
|
||||
/>{/if}<a href="/lide?id={target.id}">{target.name}</a>)
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
|
|
Načítá se…
Odkázat v novém úkolu