mirror of
https://notabug.org/SuperSaltyGamer/ame
synced 2026-01-15 16:22:56 -03:00
[musicbrainz] Reset cover picker button after use
This commit is contained in:
@@ -29,7 +29,7 @@ onReleaseAddCoverRoute(() => {
|
||||
|
||||
const buttonEl = fromHTML<HTMLSelectElement>(`
|
||||
<select>
|
||||
<option disabled selected>Search MH Covers...</option>
|
||||
<option value="" disabled selected>Search MH Covers...</option>
|
||||
<option value="search">by Artist and Album</option>
|
||||
${release.barcode ? `<option value="barcode">by Barcode</option>` : ""}
|
||||
${release.catalogs.length ? `<option value="catalog">by Catalog</option>` : ""}
|
||||
@@ -38,7 +38,9 @@ onReleaseAddCoverRoute(() => {
|
||||
`);
|
||||
|
||||
buttonEl.addEventListener("input", async () => {
|
||||
await openPicker(release, buttonEl.value as QueryType);
|
||||
const value = buttonEl.value as QueryType;
|
||||
buttonEl.value = "";
|
||||
await openPicker(release, value);
|
||||
});
|
||||
|
||||
refEl.appendChild(buttonEl);
|
||||
|
||||
Reference in New Issue
Block a user