Revert "toggle the show ordinals label button to hide, when in show ordinal mode"

This reverts commit 51215f11af.
This commit is contained in:
Warren Buckley
2017-09-14 14:09:00 +01:00
parent 26a5682a14
commit 07d05c9e0d
2 changed files with 1 additions and 4 deletions

View File

@@ -14,7 +14,6 @@
scope.sortableOptionsGroup = {};
scope.sortableOptionsProperty = {};
scope.sortingButtonKey = "general_reorder";
scope.showOrdinalsButtonKey = "general_showOrdinals";
function activate() {
@@ -247,11 +246,9 @@
scope.toggleSortOrderOverride = function (tool) {
if (scope.showSortOrdinals === true) {
scope.showSortOrdinals = false;
scope.showOrdinalsButtonKey = "general_showOrdinals";
}
else {
scope.showSortOrdinals = true;
scope.showOrdinalsButtonKey = "general_hideOrdinals";
}
};

View File

@@ -25,7 +25,7 @@
<umb-button ng-if="sortingMode !== false"
type="button"
button-style="link"
label-key="{{showOrdinalsButtonKey}}"
label-key="general_showSortOrdinals"
icon="icon-poker-chip"
action="toggleSortOrderOverride();">
</umb-button>