mirror of
https://github.com/ansible/awx.git
synced 2024-11-01 16:51:11 +03:00
Fix for activity stream state, and hover state for power button on screens with width <900px
This commit is contained in:
parent
a34a82c745
commit
67d161d818
@ -18,25 +18,26 @@ export default {
|
||||
label: "ACTIVITY STREAM"
|
||||
},
|
||||
resolve: {
|
||||
features: ['FeaturesService', 'ProcessErrors', '$state', function(FeaturesService, ProcessErrors, $state) {
|
||||
FeaturesService.get()
|
||||
.then(function(features) {
|
||||
features: ['FeaturesService', 'ProcessErrors', '$state', '$rootScope',
|
||||
function(FeaturesService, ProcessErrors, $state, $rootScope) {
|
||||
var features = FeaturesService.get();
|
||||
if(features){
|
||||
if(FeaturesService.featureEnabled('activity_streams')) {
|
||||
// Good to go - pass the features along to the controller.
|
||||
return features;
|
||||
}
|
||||
else {
|
||||
// The activity stream feature isn't enabled. Take the user
|
||||
// back to the dashboard
|
||||
$state.go('dashboard');
|
||||
}
|
||||
})
|
||||
.catch(function (response) {
|
||||
ProcessErrors(null, response.data, response.status, null, {
|
||||
hdr: 'Error!',
|
||||
msg: 'Failed to get feature info. GET returned status: ' +
|
||||
response.status
|
||||
});
|
||||
}
|
||||
$rootScope.featuresConfigured.promise.then(function(features){
|
||||
if(features){
|
||||
if(FeaturesService.featureEnabled('activity_streams')) {
|
||||
return features;
|
||||
}
|
||||
else {
|
||||
$state.go('dashboard');
|
||||
}
|
||||
}
|
||||
});
|
||||
}],
|
||||
subTitle:
|
||||
|
@ -204,16 +204,11 @@
|
||||
flex: initial!important;
|
||||
padding-top:0px;
|
||||
}
|
||||
// gonna come back to this for hte hover when license is missing and
|
||||
// screen size is less than 900px -- JT 6/2
|
||||
// .MainMenu-item--licenseMissing:hover{
|
||||
// padding-top:5px;
|
||||
// border-bottom: 5px solid @menu-link-btm-hov;
|
||||
// border-left: 0px;
|
||||
// padding-left: 21px;
|
||||
// padding-right: 21px;
|
||||
// margin-right: -1px;
|
||||
// }
|
||||
|
||||
.MainMenu-item--licenseMissing:hover{
|
||||
padding-top:20px;
|
||||
border-bottom: 5px solid @menu-link-btm-hov;
|
||||
}
|
||||
|
||||
.MainMenu-itemImage--licenseMissing{
|
||||
font-size: 20px!important;
|
||||
|
Loading…
Reference in New Issue
Block a user