Skip to content
This repository has been archived by the owner on Dec 10, 2019. It is now read-only.

Commit

Permalink
Merge pull request #53 from DamnedScholar/icon-persistence
Browse files Browse the repository at this point in the history
addIcons() now pre-seeds changesToItem if the item has an icon
  • Loading branch information
jccguimaraes authored Jun 14, 2016
2 parents fd1e147 + 906cf8d commit 3c49cb9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/modal-update-component.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@ function addIcons () {
return;
}

if (itemIcon) {
changesToItem.hasIcon = true;
changesToItem.icon = itemIcon;
}

views.icons = document.createElement('div');
views.icons.classList.add('inset-panel', 'padded');

Expand Down

0 comments on commit 3c49cb9

Please sign in to comment.