aboutsummaryrefslogtreecommitdiff
path: root/ext/settings.html
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2021-05-02 21:04:39 -0400
committerGitHub <noreply@github.com>2021-05-02 21:04:39 -0400
commit32f554402172ed53de8fb87ea207e4121c1b1fab (patch)
tree9d15da08e79fedf6288d7756e605eb2fea34292c /ext/settings.html
parenta8b602834f3d9b318f943d756914a0f28ee8fc44 (diff)
Add "Move to" menu option for moving dictionary options to a specific location (#1651)
* Add "Move to" option * Fix IDs
Diffstat (limited to 'ext/settings.html')
-rw-r--r--ext/settings.html20
1 files changed, 19 insertions, 1 deletions
diff --git a/ext/settings.html b/ext/settings.html
index 6f0c67ad..f7730eb4 100644
--- a/ext/settings.html
+++ b/ext/settings.html
@@ -2080,7 +2080,8 @@
for a list free dictionaries or click the <em>Import</em> button below to select a dictionary file to import.
</div>
<div id="dictionary-error" class="danger-text margin-above" hidden></div>
- <div id="dictionary-list" class="dictionary-list" data-count="0">
+ <div id="dictionary-list" class="dictionary-list generic-list" data-count="0">
+ <div class="dictionary-item-top"></div>
<label class="dictionary-item-top toggle dictionary-item-enabled-toggle-container"><input type="checkbox" id="all-dictionaries-enabled"><span class="toggle-body"><span class="toggle-track"></span><span class="toggle-knob"></span></span></label>
<div class="dictionary-item-top dictionary-item-title-container">All</div>
<div class="dictionary-item-top">Priority</div>
@@ -2226,9 +2227,24 @@
</div>
</div></div>
+<div id="dictionary-move-location-modal" class="modal" tabindex="-1" role="dialog" hidden><div class="modal-content modal-content-small">
+ <div class="modal-header"><div class="modal-title">Move Dictionary Options</div></div>
+ <div class="modal-body">
+ <p>Input the location the dictionary <strong class="dictionary-title"></strong> should be moved to:</p>
+ <div class="margin-above">
+ <input type="number" id="dictionary-move-location" min="1" step="1">
+ </div>
+ </div>
+ <div class="modal-footer">
+ <button class="low-emphasis" data-modal-action="hide">Cancel</button>
+ <button data-modal-action="hide" id="dictionary-move-button">Move</button>
+ </div>
+</div></div>
+
<!-- Dictionary templates -->
<template id="dictionary-template">
+ <div class="dictionary-list-index generic-list-index-prefix"></div>
<label class="toggle dictionary-item-enabled-toggle-container"><input type="checkbox" class="dictionary-enabled"><span class="toggle-body"><span class="toggle-track"></span><span class="toggle-knob"></span></span></label>
<div class="dictionary-item-title-container">
<span>
@@ -2252,6 +2268,7 @@
<template id="dictionary-extra-template">
<div class="dictionary-item-bottom"></div>
+ <div class="dictionary-item-bottom"></div>
<div class="dictionary-item-bottom dictionary-item-title-container">
<span>
<strong class="dictionary-title">Unassociated Data</strong> <span class="light dictionary-total-count"></span>
@@ -2268,6 +2285,7 @@
<button class="popup-menu-item" data-menu-action="showDetails">Details&hellip;</button>
<button class="popup-menu-item" data-menu-action="moveUp">Move up</button>
<button class="popup-menu-item" data-menu-action="moveDown">Move down</button>
+ <button class="popup-menu-item" data-menu-action="moveTo">Move to&hellip;</button>
<button class="popup-menu-item" data-menu-action="delete">Delete</button>
</div></div></div></template>