Skip to content

Commit

Permalink
Display dashboard from home screen
Browse files Browse the repository at this point in the history
  • Loading branch information
satyarc committed Jan 31, 2018
1 parent c81d084 commit c2150ee
Show file tree
Hide file tree
Showing 11 changed files with 3,082 additions and 1,261 deletions.
9 changes: 9 additions & 0 deletions ui/src/app/components/grid.directive.js
Original file line number Diff line number Diff line change
Expand Up @@ -715,6 +715,15 @@ function GridController($scope, $state, $mdDialog, $document, $q, $mdUtil, $time
function hasData() {
return vm.items.data.length > 0;
}

vm.openDashboard = function(dashboard) {
$state.go('home.dashboards.dashboard', {dashboardId: dashboard.id.id});
/*
$state.go('home.customers.dashboards.dashboard', {
customerId: vm.currentCustomerId,
dashboardId: dashboard.id.id
});*/
}

}

Expand Down
234 changes: 8 additions & 226 deletions ui/src/app/components/usergrid.tpl.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions ui/src/app/components/usermenugrid.tpl.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
<div flex ng-repeat="n in [] | range:vm.columns" ng-style="{'height':vm.itemHeight+'px'}" ng-if="rowItem[n]">
<ul flex layout="column" layout-align="start stretch" class="tb-side-menu">
<li class="parent-list-item" ng-class="{'tb-current-item': vm.isCurrentItem(rowItem[n])}">
<md-button ui-sref-active-eq="tb-active"> <!-- ui-sref="{{section.state}}"> -->
<!--<md-icon aria-label="{{domain}}" class="material-icons">{{domain}}</md-icon>-->
<md-button ui-sref-active-eq="tb-active" >
<!-- <md-icon aria-label="{{rowItem[n].name}}" class="material-icons">{{rowItem[n].name}}</md-icon> -->
{{rowItem[n].name}}
</md-button>
</li>
Expand Down
Loading

0 comments on commit c2150ee

Please sign in to comment.