Skip to content

Commit

Permalink
put the add on - icons back in.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Jump committed Aug 26, 2020
1 parent ae51c2e commit b86cf21
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,22 @@
$timeout(function () {
navigationService.syncTree({ tree: "uSync8", path: "-1" });
});

uSync8DashboardService.getAddOns()
.then(function (result) {
vm.addOns = result.data.AddOns;
vm.addOns.forEach(function (value, key) {
if (value.View !== '') {
vm.page.navigation.splice(vm.page.navigation.length - 2, 0,
{
'name': value.DisplayName,
'alias': value.Alias,
'icon': value.Icon,
'view': value.View
});
}
});
});
}

angular.module('umbraco')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,22 @@
$timeout(function () {
navigationService.syncTree({ tree: "uSync8", path: "-1" });
});

uSync8DashboardService.getAddOns()
.then(function (result) {
vm.addOns = result.data.AddOns;
vm.addOns.forEach(function (value, key) {
if (value.View !== '') {
vm.page.navigation.splice(vm.page.navigation.length - 2, 0,
{
'name': value.DisplayName,
'alias': value.Alias,
'icon': value.Icon,
'view': value.View
});
}
});
});
}

angular.module('umbraco')
Expand Down

0 comments on commit b86cf21

Please sign in to comment.