diff --git a/uSync8.BackOffice/App_Plugins/uSync8/backoffice/uSync8/uSyncDashboardController.js b/uSync8.BackOffice/App_Plugins/uSync8/backoffice/uSync8/uSyncDashboardController.js index 5f07dc67..e085ec5b 100644 --- a/uSync8.BackOffice/App_Plugins/uSync8/backoffice/uSync8/uSyncDashboardController.js +++ b/uSync8.BackOffice/App_Plugins/uSync8/backoffice/uSync8/uSyncDashboardController.js @@ -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') diff --git a/uSync8.Site/App_Plugins/uSync8/backoffice/uSync8/uSyncDashboardController.js b/uSync8.Site/App_Plugins/uSync8/backoffice/uSync8/uSyncDashboardController.js index ae369f92..4c9e7a6e 100644 --- a/uSync8.Site/App_Plugins/uSync8/backoffice/uSync8/uSyncDashboardController.js +++ b/uSync8.Site/App_Plugins/uSync8/backoffice/uSync8/uSyncDashboardController.js @@ -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')