admin dashboard early UI refresh
This commit is contained in:
parent
028ed60293
commit
13a84f7f25
12 changed files with 249 additions and 139 deletions
|
|
@ -1,3 +1,5 @@
|
|||
import { hijackClickEvent } from "./admin.js";
|
||||
|
||||
const newReleaseBtn = document.getElementById("create-release");
|
||||
const newArtistBtn = document.getElementById("create-artist");
|
||||
const newTrackBtn = document.getElementById("create-track");
|
||||
|
|
@ -72,3 +74,9 @@ newTrackBtn.addEventListener("click", event => {
|
|||
console.error(err);
|
||||
});
|
||||
});
|
||||
|
||||
document.addEventListener("readystatechange", () => {
|
||||
document.querySelectorAll(".card.artists .artist").forEach(el => {
|
||||
hijackClickEvent(el, el.querySelector("a.artist-name"))
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue