umb-group-builder: Change text on button when reordering tabs and properties

This commit is contained in:
Mads Rasmussen
2015-09-15 09:52:00 +02:00
parent 2fb229bfb7
commit 8710c0e1ca

View File

@@ -35,16 +35,16 @@
var compositionTool = {
"name": "Compositions",
"icon": "icon-merge",
"action": function() {
scope.openCompositionsDialog();
"action": function(tool) {
scope.openCompositionsDialog(tool);
}
};
var sortingTool = {
"name": "Reorder",
"icon": "icon-navigation",
"action": function() {
scope.toggleSortingMode();
"action": function(tool) {
scope.toggleSortingMode(tool);
}
};
@@ -159,8 +159,16 @@
/* ---------- TOOLBAR ---------- */
scope.toggleSortingMode = function() {
scope.sortingMode = !scope.sortingMode;
scope.toggleSortingMode = function(tool) {
scope.sortingMode = !scope.sortingMode;
if(scope.sortingMode === true) {
tool.name = "I'm done reordering";
} else {
tool.name = "Reorder";
}
};
scope.openCompositionsDialog = function() {