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

This commit is contained in:
Marc Goodson
2017-03-24 10:20:31 +00:00
parent 3df103eae2
commit 51215f11af
2 changed files with 4 additions and 1 deletions

View File

@@ -14,6 +14,7 @@
scope.sortableOptionsGroup = {};
scope.sortableOptionsProperty = {};
scope.sortingButtonKey = "general_reorder";
scope.showOrdinalsButtonKey = "general_showOrdinals";
function activate() {
@@ -246,9 +247,11 @@
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="general_showSortOrdinals"
label-key="{{showOrdinalsButtonKey}}"
icon="icon-poker-chip"
action="toggleSortOrderOverride();">
</umb-button>