Commit 4ef6fc28 authored by neo's avatar neo

[DEV] hidden keyword datasorce menu in admin

parent bcb8d858
......@@ -2171,9 +2171,9 @@ ng-show="hasEditPermission && ToggleSaveAs && editModel.hasModel"/>');
var tabs = [
{id: 0, text: $translate.instant('AutoCalculateTab')},
{id: 1, text: $translate.instant('ManualInputTab')},
{id: 1, text: $translate.instant('ManualInputTab')}
// {id: 2, text: $translate.instant('ModelTab')},
{id: 2, text: $translate.instant('ValidationTab')}
// {id: 2, text: $translate.instant('ValidationTab')}
];
$scope.tabOptions = {
dataSource: tabs,
......
......@@ -15,13 +15,11 @@ frameworkModule.controller('appSideBarController', ['$scope', '$log', 'menuServi
menuService.getMenusForDisplay(1).success(function (menuData) {
$scope.menuData = menuData;
if ($scope.specialUser === 'simon') {
$scope.menuData[2].subMenus[0].isVisible = false;
$scope.menuData[2].subMenus[1].isVisible = false;
$scope.menuData[2].subMenus[3].isVisible = false;
$scope.menuData[2].subMenus[4].isVisible = false;
$scope.menuData[2].subMenus[5].isVisible = false;
}
$scope.menuData[2].subMenus[0].isVisible = true;
$scope.menuData[2].subMenus[1].isVisible = false;
$scope.menuData[2].subMenus[3].isVisible = false;
$scope.menuData[2].subMenus[4].isVisible = true;
$scope.menuData[2].subMenus[5].isVisible = true;
$window.location.href = '#/adminHomePage';
});
}, 500);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment