user profile: only default to "pinned notes" if they exist

it's sensible to show the pinned notes first *if they exist*

if there's nothing pinned, we're just showing an empty list

let's show the "notes" tab in that case
This commit is contained in:
dakkar 2024-12-09 15:40:54 +00:00
parent 92ffd2a5fc
commit 0d9d952d2c

View file

@ -260,7 +260,7 @@ const memoDraft = ref(props.user.memo);
const isEditingMemo = ref(false); const isEditingMemo = ref(false);
const moderationNote = ref(props.user.moderationNote); const moderationNote = ref(props.user.moderationNote);
const editModerationNote = ref(false); const editModerationNote = ref(false);
const noteview = ref<string | null>('pinned'); const noteview = ref<string | null>(props.user.pinnedNotes.length ? 'pinned' : null);
const listenbrainzdata = ref(false); const listenbrainzdata = ref(false);
if (props.user.listenbrainz) { if (props.user.listenbrainz) {