Add saving & clearing of changes of the sidebar tab ordering

This commit is contained in:
Oliver 2026-02-26 23:02:00 -07:00
parent a682048852
commit 8c8d16e315
5 changed files with 99 additions and 9 deletions

View file

@ -1,14 +1,46 @@
<footer>
<button type="close">
{{ localize "OFT.apps.discard-changes" }}
</button>
<button>
<button data-scope="User">
<oft-icon
name="icons/save"
aria-hidden="true"
var:fill="currentColor"
var:size="1rem"
></oft-icon>
{{ localize "Save Changes" }}
{{ localize "OFT.apps.SidebarTabRearranger.save-user" }}
</button>
<button
type="button"
data-action="unsetSetting"
data-scope="User"
>
{{ localize "OFT.apps.SidebarTabRearranger.remove-user" }}
</button>
{{#if meta.isGM}}
<button
data-scope="World"
>
<oft-icon
name="icons/save"
aria-hidden="true"
var:fill="currentColor"
var:size="1rem"
></oft-icon>
{{ localize "OFT.apps.SidebarTabRearranger.save-world" }}
</button>
<button
type="button"
data-action="unsetSetting"
data-scope="World"
>
{{ localize "OFT.apps.SidebarTabRearranger.remove-world" }}
</button>
{{/if}}
<button
class="wide"
type="close"
>
{{ localize "OFT.apps.discard-changes" }}
</button>
</footer>

View file

@ -1,4 +1,9 @@
<main>
{{#if showUserOverrideWarning}}
<p class="warning">
{{ localize "OFT.apps.SidebarTabRearranger.user-override-warning" }}
</p>
{{/if}}
<div class="top-label">
{{ localize "OFT.apps.SidebarTabRearranger.top" }}
</div>