mirror of
https://github.com/ansible/awx.git
synced 2026-02-16 18:50:04 -03:30
Added variable data fied to Host detail page. Save/edit work -made changes in the Hosts controller for this. Still need to validate text blob is valid JSON.
This commit is contained in:
@@ -197,6 +197,15 @@ angular.module('ansible', [
|
||||
Authorization.restoreUserInfo(); //user must have hit browser refresh
|
||||
}
|
||||
}
|
||||
// Make the correct tab active
|
||||
var base = ($location.path().replace(/^\//,'').split('/')[0]);
|
||||
if (base == '') {
|
||||
$('.nav-tabs a[href="#' + 'organizations' + '"]').tab('show');
|
||||
}
|
||||
else {
|
||||
base.replace(/\_/g,' ');
|
||||
$('.nav-tabs a[href="#' + base + '"]').tab('show');
|
||||
}
|
||||
});
|
||||
|
||||
if (! Authorization.isTokenValid() ) {
|
||||
|
||||
Reference in New Issue
Block a user