mirror of
https://github.com/ijprest/keyboard-layout-editor.git
synced 2026-04-07 00:31:08 -07:00
Unhide decals
This commit is contained in:
parent
087a630276
commit
fa89bf7fde
2 changed files with 20 additions and 4 deletions
14
kb.html
14
kb.html
|
|
@ -1013,8 +1013,8 @@ Tools Dialog
|
|||
<h4 class="modal-title">Tools</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<h5>Remove or Move Legends:</h5>
|
||||
<p>You should save your work before using these tools, their is no Undo.</p>
|
||||
<h5>Remove or Move Legends</h5>
|
||||
<p>You should save your work before using these tools, there is no Undo.</p>
|
||||
<div class="form-group form-group-sm form-horizontal">
|
||||
<label class="control-label text-nowrap" style='margin-left: 5px;'>Remove Legends:</label>
|
||||
<div class="btn-group btn-group-xs" role="group">
|
||||
|
|
@ -1041,11 +1041,17 @@ Tools Dialog
|
|||
<div class="btn-group btn-group-xs" role="group">
|
||||
<button type="button" class="btn btn-success hint--top hint--rounded" data-hint="Remove the legends from all the Decals." ng-click="removeLegends('decals')"> Decals</button>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<hr>
|
||||
<div class="form-group form-group-sm form-horizontal">
|
||||
<label class="control-label text-nowrap" style='margin-left: 5px;'>Unhide decal keys:</label>
|
||||
<div class="btn-group btn-group-xs" role="group">
|
||||
<button type="button" class="btn btn-success hint--top hint--rounded" data-hint="Show the hidden decal keys." ng-click="unhideDecals()"> Unhide</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-danger" ng-click="cancel()">Cancel</button>
|
||||
<button type="button" class="btn btn-danger" ng-click="cancel()">Done</button>
|
||||
</div>
|
||||
</script>
|
||||
|
||||
|
|
|
|||
10
kb.js
10
kb.js
|
|
@ -375,6 +375,16 @@
|
|||
}
|
||||
});
|
||||
};
|
||||
|
||||
$scope.unhideDecals = function() {
|
||||
var prop = 'decal';
|
||||
angular.forEach($scope.keys(), function(key) {
|
||||
if(key.decal) {
|
||||
update(key,prop,false);
|
||||
renderKey(key);
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
// Helper function to select a single key
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue