Fixed bug that I introduced that was preventing permissions from being added

This commit is contained in:
Michael Abashian 2017-01-06 17:08:49 -05:00
parent d5247c6d95
commit f557d9cb71
2 changed files with 3 additions and 4 deletions

View File

@ -21,7 +21,7 @@ export default
});
});
// Remove the clone from the dom
$breadcrumbClone.remove();console.log(availableWidth);
$breadcrumbClone.remove();
if(expandedBreadcrumbWidth > availableWidth) {
let widthToTrim = expandedBreadcrumbWidth - availableWidth;
// Sort the crumbs from biggest to smallest

View File

@ -30,13 +30,12 @@ export default
item: '=item'
},
require: '^multiSelectList',
template: '<input type="checkbox" data-multi-select-list-item ng-model="isSelected" ng-change="userInteractionSelect()">',
template: '<input type="checkbox" data-multi-select-list-item ng-model="item.isSelected" ng-change="userInteractionSelect()">',
link: function(scope, element, attrs, multiSelectList) {
scope.decoratedItem = multiSelectList.registerItem(scope.item);
scope.isSelected = scope.decoratedItem.isSelected ? true : false;
scope.$watch('isSelected', function(value) {
scope.$watch('item.isSelected', function(value) {
if (value === true) {
multiSelectList.selectItem(scope.decoratedItem);
} else if (value === false) {