Settings gear icon

This commit is contained in:
Pedro S 2016-10-21 12:03:45 -07:00
parent b30aeec4da
commit 0992ec5b9c
7 changed files with 39 additions and 6 deletions

View File

@ -152,6 +152,7 @@ require('ui/modules').get('app/wazuh', [])
$route.current.params._g = $scope.visG; $route.current.params._g = $scope.visG;
$route.updateParams({ '_g': $scope.visG }); $route.updateParams({ '_g': $scope.visG });
$state.emit('fetch_with_changes'); $state.emit('fetch_with_changes');
//init();
}); });
function init() { function init() {
@ -180,6 +181,7 @@ require('ui/modules').get('app/wazuh', [])
}); });
$scope.$listen($state, 'fetch_with_changes', function (keys) { $scope.$listen($state, 'fetch_with_changes', function (keys) {
console.log("hey");
let $state = $scope.$state = (function initState() { let $state = $scope.$state = (function initState() {
$route.current.params._a = $scope.visA; $route.current.params._a = $scope.visA;
$route.updateParams({ '_a': $scope.visA }); $route.updateParams({ '_a': $scope.visA });

View File

@ -1,4 +1,10 @@
/* MATERIAL */ body{
min-width:1024px;
width: auto !important;
width:1024px;
}
::-webkit-scrollbar { ::-webkit-scrollbar {
display: block !important; display: block !important;
width: 0px; width: 0px;
@ -476,3 +482,10 @@ md-input-container.md-whiteframe-z1.flex-20 {
md-select.md-default-theme ._md-select-value._md-select-placeholder, md-select ._md-select-value._md-select-placeholder { md-select.md-default-theme ._md-select-value._md-select-placeholder, md-select ._md-select-value._md-select-placeholder {
color: white; color: white;
} }
#settingButtonTop{
float: right;
clear: both;
position: absolute;
color: white;
right: 0;
}

View File

@ -10,7 +10,10 @@
<md-nav-item md-nav-href="#/agents" name="agents" >Agents</md-nav-item> <md-nav-item md-nav-href="#/agents" name="agents" >Agents</md-nav-item>
<md-nav-item md-nav-href="#/discover" name="discover" ng-click="resetDiscover();">Discover</md-nav-item> <md-nav-item md-nav-href="#/discover" name="discover" ng-click="resetDiscover();">Discover</md-nav-item>
<md-nav-item md-nav-href="#/dashboards" name="dashboards" ng-click="resetDashboards();">Dashboards</md-nav-item> <md-nav-item md-nav-href="#/dashboards" name="dashboards" ng-click="resetDashboards();">Dashboards</md-nav-item>
<md-nav-item md-nav-href="#/settings" name="settings">Settings</md-nav-item> <a href="#/settings"><button id="settingButtonTop" class="md-primary md-button ng-scope md-ink-ripple" type="button" ng-transclude="">
<i class="fa fa-cog ng-scope" aria-hidden="true" style="font-size: 18px;"></i>
</button>
</a>
</md-nav-bar> </md-nav-bar>
</md-content> </md-content>

View File

@ -10,7 +10,10 @@
<md-nav-item md-nav-href="#/agents" name="agents">Agents</md-nav-item> <md-nav-item md-nav-href="#/agents" name="agents">Agents</md-nav-item>
<md-nav-item md-nav-href="#/discover" name="discover" ng-click="resetDiscover();">Discover</md-nav-item> <md-nav-item md-nav-href="#/discover" name="discover" ng-click="resetDiscover();">Discover</md-nav-item>
<md-nav-item md-nav-href="#/dashboards" name="dashboards" ng-click="resetDashboards();">Dashboards</md-nav-item> <md-nav-item md-nav-href="#/dashboards" name="dashboards" ng-click="resetDashboards();">Dashboards</md-nav-item>
<md-nav-item md-nav-href="#/settings" name="settings">Settings</md-nav-item> <a href="#/settings"><button id="settingButtonTop" class="md-primary md-button ng-scope md-ink-ripple" type="button" ng-transclude="">
<i class="fa fa-cog ng-scope" aria-hidden="true" style="font-size: 18px;"></i>
</button>
</a>
</md-nav-bar> </md-nav-bar>
</md-content> </md-content>

View File

@ -10,7 +10,10 @@
<md-nav-item md-nav-href="#/agents" name="agents">Agents</md-nav-item> <md-nav-item md-nav-href="#/agents" name="agents">Agents</md-nav-item>
<md-nav-item md-nav-href="#/discover" name="discover" ng-click="resetDiscover();">Discover</md-nav-item> <md-nav-item md-nav-href="#/discover" name="discover" ng-click="resetDiscover();">Discover</md-nav-item>
<md-nav-item md-nav-href="#/dashboards" name="dashboards" ng-click="resetDashboards();">Dashboards</md-nav-item> <md-nav-item md-nav-href="#/dashboards" name="dashboards" ng-click="resetDashboards();">Dashboards</md-nav-item>
<md-nav-item md-nav-href="#/settings" name="settings">Settings</md-nav-item> <a href="#/settings"><button id="settingButtonTop" class="md-primary md-button ng-scope md-ink-ripple" type="button" ng-transclude="">
<i class="fa fa-cog ng-scope" aria-hidden="true" style="font-size: 18px;"></i>
</button>
</a>
</md-nav-bar> </md-nav-bar>
</md-content> </md-content>

View File

@ -10,7 +10,10 @@
<md-nav-item md-nav-href="#/agents" name="agents">Agents</md-nav-item> <md-nav-item md-nav-href="#/agents" name="agents">Agents</md-nav-item>
<md-nav-item md-nav-href="#/discover" name="discover" ng-click="resetDiscover();">Discover</md-nav-item> <md-nav-item md-nav-href="#/discover" name="discover" ng-click="resetDiscover();">Discover</md-nav-item>
<md-nav-item md-nav-href="#/dashboards" name="dashboards" ng-click="resetDashboards();">Dashboards</md-nav-item> <md-nav-item md-nav-href="#/dashboards" name="dashboards" ng-click="resetDashboards();">Dashboards</md-nav-item>
<md-nav-item md-nav-href="#/settings" name="settings">Settings</md-nav-item> <a href="#/settings"><button id="settingButtonTop" class="md-primary md-button ng-scope md-ink-ripple" type="button" ng-transclude="">
<i class="fa fa-cog ng-scope" aria-hidden="true" style="font-size: 18px;"></i>
</button>
</a>
</md-nav-bar> </md-nav-bar>
</md-content> </md-content>

View File

@ -10,8 +10,14 @@
<md-nav-item md-nav-href="#/agents" name="agents">Agents</md-nav-item> <md-nav-item md-nav-href="#/agents" name="agents">Agents</md-nav-item>
<md-nav-item md-nav-href="#/discover" name="discover" ng-click="resetDiscover();">Discover</md-nav-item> <md-nav-item md-nav-href="#/discover" name="discover" ng-click="resetDiscover();">Discover</md-nav-item>
<md-nav-item md-nav-href="#/dashboards" name="dashboards" ng-click="resetDashboards();">Dashboards</md-nav-item> <md-nav-item md-nav-href="#/dashboards" name="dashboards" ng-click="resetDashboards();">Dashboards</md-nav-item>
<md-nav-item md-nav-href="#/settings" name="settings">Settings</md-nav-item> <a href="#/settings"><button id="settingButtonTop" class="md-primary md-button ng-scope md-ink-ripple" type="button" ng-transclude="">
<i class="fa fa-cog ng-scope" aria-hidden="true" style="font-size: 18px;"></i>
</button>
</a>
</md-nav-bar> </md-nav-bar>
</md-content> </md-content>
<md-content class="headBar" layout="row" layout-align="center start" ng-init="submenuNavItem = (state.getOverviewState() ? state.getOverviewState() : 'general')"> <md-content class="headBar" layout="row" layout-align="center start" ng-init="submenuNavItem = (state.getOverviewState() ? state.getOverviewState() : 'general')">