Add artists to the play selection and dropdown component

This commit is contained in:
Manuel Ruwe 2022-12-18 12:37:33 +01:00
parent a7eb89d0e4
commit fb60efde67

View File

@ -70,7 +70,7 @@ export class PlayItemCommand
`:white_small_square: ${trimStringToFixedLength(
this.markSearchTermOverlap(item.Name, dto.search),
30,
)} *(${item.Type})*`,
)} [${item.Artists.join(', ')}] *(${item.Type})*`,
);
let description =
@ -100,7 +100,7 @@ export class PlayItemCommand
const selectOptions: { label: string; value: string; emoji?: string }[] =
firstItems.map((item) => ({
label: item.Name,
label: `${item.Name} [${item.Artists.join(', ')}]`,
value: item.Id,
emoji: emojiForType(item.Type),
}));