Skip to content

Commit

Permalink
Setting default icon for change item type dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
callumbwhyte committed Mar 6, 2022
1 parent 434ea7e commit 042ee48
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,12 @@
vm.$onInit = function () {
localizationHelper.translate(vm.labels);

vm.itemTypes.forEach(itemType => {
if (!itemType.icon) {
itemType.icon = "icon-link";
}
});

var setItemTypes = function (items) {
items.forEach(item => {
item.itemType = getItemType(item);
Expand Down

0 comments on commit 042ee48

Please sign in to comment.