Skip to content

Commit

Permalink
- Set username for temporary user-created tags
Browse files Browse the repository at this point in the history
  • Loading branch information
hardiesoft committed Feb 19, 2025
1 parent 7adf563 commit 6f34819
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions browse-next/src/components/SpectrogramViewer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -671,6 +671,10 @@ watch(pendingTrackClass, async (classification: string[]) => {
}, 300);
// Patch the pending track
pendingTrack.value.tags[0].what = classification[0];
pendingTrack.value.tags[0].automatic = false;
pendingTrack.value.tags[0].createdAt = new Date().toISOString();
pendingTrack.value.tags[0].userId = currentUser.value?.id;
pendingTrack.value.tags[0].userName = currentUser.value?.userName;
emit("track-tag-changed", {
track: pendingTrack.value as ApiTrackResponse,
tag: classification[0] || "",
Expand Down

0 comments on commit 6f34819

Please sign in to comment.