Skip to content

Commit

Permalink
misc: always show delete media folder mapping button
Browse files Browse the repository at this point in the history
  • Loading branch information
revam committed Aug 12, 2024
1 parent 76d790d commit 006e955
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
7 changes: 0 additions & 7 deletions Shokofin/Configuration/configController.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,13 +177,6 @@ async function loadMediaFolderConfig(form, mediaFolderId, config) {
form.querySelector("#MediaFolderDefaultSettingsContainer").setAttribute("hidden", "");
form.querySelector("#MediaFolderPerFolderSettingsContainer").removeAttribute("hidden");

if (mediaFolderConfig.IsMapped && mediaFolderConfig.LibraryName) {
form.querySelector("#MediaFolderDeleteContainer").setAttribute("hidden", "");
}
else {
form.querySelector("#MediaFolderDeleteContainer").removeAttribute("hidden");
}

Dashboard.hideLoadingMsg();
}

Expand Down
2 changes: 1 addition & 1 deletion Shokofin/Configuration/configPage.html
Original file line number Diff line number Diff line change
Expand Up @@ -1354,7 +1354,7 @@ <h3>Media Folder Settings</h3>
</div>
</div>
</div>
<div id="MediaFolderDeleteContainer" class="inputContainer inputContainer-withDescription" hidden>
<div class="inputContainer inputContainer-withDescription" hidden>
<button is="emby-button" type="submit" name="remove-media-folder" class="raised button-delete block emby-button">
<span>Delete</span>
</button>
Expand Down

0 comments on commit 006e955

Please sign in to comment.