mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 07:07:35 +01:00
fix: Remove name from sortable inventory
This commit is contained in:
@@ -5,17 +5,16 @@ habitrpg.controller('SortableInventoryController', ['$scope',
|
|||||||
intelligence: ['-int', '-(con+int+per+str)'],
|
intelligence: ['-int', '-(con+int+per+str)'],
|
||||||
perception: ['-per', '-(con+int+per+str)'],
|
perception: ['-per', '-(con+int+per+str)'],
|
||||||
strength: ['-str', '-(con+int+per+str)'],
|
strength: ['-str', '-(con+int+per+str)'],
|
||||||
name: 'text()',
|
|
||||||
set: 'set'
|
set: 'set'
|
||||||
}
|
}
|
||||||
|
|
||||||
$scope.order = attributeSort.name;
|
|
||||||
$scope.orderChoice = 'name';
|
|
||||||
|
|
||||||
$scope.setOrder = function (order) {
|
$scope.setOrder = function (order) {
|
||||||
$scope.orderChoice = order;
|
$scope.orderChoice = order;
|
||||||
if (order in attributeSort) {
|
if (order in attributeSort) {
|
||||||
$scope.order = attributeSort[order];
|
$scope.order = attributeSort[order];
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
$scope.orderChoice = 'set';
|
||||||
|
$scope.setOrder($scope.orderChoice);
|
||||||
}]);
|
}]);
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ mixin orderByButton
|
|||||||
button.btn.btn-default.dropdown-toggle(type='button', data-toggle='dropdown')
|
button.btn.btn-default.dropdown-toggle(type='button', data-toggle='dropdown')
|
||||||
| {{env.t("orderBy", { item: env.t(orderChoice) })}} #[span.caret]
|
| {{env.t("orderBy", { item: env.t(orderChoice) })}} #[span.caret]
|
||||||
ul.dropdown-menu
|
ul.dropdown-menu
|
||||||
- each attr in ["name", "set"]
|
- each attr in ["set"]
|
||||||
+choice(attr)
|
+choice(attr)
|
||||||
li.divider(role="separator")
|
li.divider(role="separator")
|
||||||
- each attr in ["constitution", "intelligence", "perception", "strength"]
|
- each attr in ["constitution", "intelligence", "perception", "strength"]
|
||||||
|
|||||||
Reference in New Issue
Block a user