Skip to content

Commit

Permalink
admin: Add better display for changes with empty content
Browse files Browse the repository at this point in the history
  • Loading branch information
ThrRip committed Dec 23, 2023
1 parent 0cbaf93 commit 966d018
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/admin/components/PlaylistList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,12 @@
:key="song.$id"
class="grid grid-cols-[1.875rem_0.55fr_0.45fr_5rem_5.5rem] portrait:grid-cols-[2.125rem_1fr_3.5rem_4.5rem]
grid-rows-1 portrait:grid-rows-[auto_auto]"
:class="{
'bg-blue-l/50 rounded-xl': props.type === 'changes' &&
song.$id.includes('-') && song.name === '' && song.artist === '' && song.payment_amount === null && song.language === '',
'bg-pink-l/75 rounded-xl': props.type === 'changes' &&
Object.keys(song).length === 1 && Object.keys(song)[0] === '$id',
}"
>
<label
title="选择"
Expand Down

0 comments on commit 966d018

Please sign in to comment.