mirror of
https://github.com/ansible/awx.git
synced 2026-01-19 13:41:28 -03:30
removing more references to "Tower" in the code base
This commit is contained in:
parent
9449a0079f
commit
f7f186e676
@ -276,7 +276,7 @@ i:active,
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
#configure-tower-dialog, #configure-schedules-form-container {
|
||||
#configure-dialog, #configure-schedules-form-container {
|
||||
display: none;
|
||||
overflow-x: hidden;
|
||||
overflow-y: auto;
|
||||
|
||||
@ -8,8 +8,8 @@
|
||||
import route from './about.route';
|
||||
|
||||
export default
|
||||
angular.module('aboutTower', [])
|
||||
.controller('aboutTower', controller)
|
||||
angular.module('about', [])
|
||||
.controller('about', controller)
|
||||
.run(['$stateExtender', function($stateExtender){
|
||||
$stateExtender.addState(route);
|
||||
}]);
|
||||
}]);
|
||||
|
||||
@ -77,7 +77,7 @@ import '../lib/models';
|
||||
import '../lib/services';
|
||||
import '../features';
|
||||
|
||||
var tower = angular.module('Tower', [
|
||||
var app = angular.module('app', [
|
||||
// how to add CommonJS / AMD third-party dependencies:
|
||||
// 1. npm install --save package-name
|
||||
// 2. add package name to ./grunt-tasks/webpack.vendorFiles
|
||||
@ -460,4 +460,4 @@ var tower = angular.module('Tower', [
|
||||
}
|
||||
]);
|
||||
|
||||
export default tower;
|
||||
export default app;
|
||||
|
||||
@ -65,7 +65,7 @@ export default
|
||||
})
|
||||
.error(function (data, status) {
|
||||
Wait('stop');
|
||||
// TODO: hopefully this conditional error handling will to away in a future version of tower. The reason why we cannot
|
||||
// TODO: hopefully this conditional error handling will to away in a future versions. The reason why we cannot
|
||||
// simply pass this error to ProcessErrors is because it will actually match the form element 'ssh_key_unlock' and show
|
||||
// the error there. The ssh_key_unlock field is not shown when the kind of credential is gce/azure and as a result the
|
||||
// error is never shown. In the future, the API will hopefully either behave or respond differently.
|
||||
|
||||
@ -8,4 +8,4 @@ import footerDirective from './footer.directive';
|
||||
|
||||
export default
|
||||
angular.module('footer', [])
|
||||
.directive('towerFooter', footerDirective);
|
||||
.directive('customFooter', footerDirective);
|
||||
|
||||
@ -32,7 +32,7 @@
|
||||
* that with the login form. Doing this each time the controller is instantiated insures the form is clean and not pre-populated with a prior user's username and password.
|
||||
*
|
||||
* Just before the release of 2.0 a bug was discovered where clicking logout and then immediately clicking login without providing a username and password would successfully log
|
||||
* the user back into Tower. Implementing the above approach fixed this, forcing a new username/password to be entered each time the login dialog appears.
|
||||
* the user back into the app. Implementing the above approach fixed this, forcing a new username/password to be entered each time the login dialog appears.
|
||||
*
|
||||
* #Login Workflow
|
||||
*
|
||||
@ -44,7 +44,7 @@
|
||||
* - Get user informaton by calling Authorization.getUser() - sends a GET request to /api/v2/me
|
||||
* - Store user information in the session cookie by calling Authorization.setUser().
|
||||
* - Get the license by calling ConfigService.getConfig() - sends a GET request to /api/vi/config
|
||||
* - Stores the license object in memory by calling CheckLicense.test(). This adds the version and a tested flag to the license object. The tested flag is initially set to false. Additionally, the pendoService and FeaturesService are called to initiate the other startup services of Tower
|
||||
* - Stores the license object in memory by calling CheckLicense.test(). This adds the version and a tested flag to the license object. The tested flag is initially set to false. Additionally, the pendoService and FeaturesService are called to initiate the other startup services
|
||||
*
|
||||
* Note that there is a session timer kept on the server side as well as the client side. Each time an API request is made, app.js calls
|
||||
* Timer.isExpired(). This verifies the UI does not think the session is expired, and if not, moves the expiration time into the future. The number of
|
||||
|
||||
@ -42,7 +42,7 @@ export default
|
||||
// Cancel
|
||||
scope.cancelConfigure = function () {
|
||||
try {
|
||||
$('#configure-tower-dialog').dialog('close');
|
||||
$('#configure-dialog').dialog('close');
|
||||
$("#configure-save-button").remove();
|
||||
}
|
||||
catch(e) {
|
||||
@ -131,7 +131,7 @@ export default
|
||||
.success(function(data) {
|
||||
Wait('stop');
|
||||
$("#prompt-for-days-facts").dialog("close");
|
||||
$("#configure-tower-dialog").dialog('close');
|
||||
$("#configure-dialog").dialog('close');
|
||||
$state.go('managementJobStdout', {id: data.system_job}, {reload:true});
|
||||
})
|
||||
.error(function(data, status) {
|
||||
@ -151,7 +151,7 @@ export default
|
||||
scope.removePromptForDays();
|
||||
}
|
||||
scope.removePromptForDays = scope.$on('PromptForDaysFacts', function() {
|
||||
// $('#configure-tower-dialog').dialog('close');
|
||||
// $('#configure-dialog').dialog('close');
|
||||
$('#prompt-for-days-facts').show();
|
||||
$('#prompt-for-days-facts').dialog('open');
|
||||
CreateSelect2({
|
||||
@ -221,7 +221,7 @@ export default
|
||||
.success(function(data) {
|
||||
Wait('stop');
|
||||
$("#prompt-for-days").dialog("close");
|
||||
// $("#configure-tower-dialog").dialog('close');
|
||||
// $("#configure-dialog").dialog('close');
|
||||
$state.go('managementJobStdout', {id: data.system_job}, {reload:true});
|
||||
})
|
||||
.error(function(data, status) {
|
||||
@ -241,7 +241,7 @@ export default
|
||||
scope.removePromptForDays();
|
||||
}
|
||||
scope.removePromptForDays = scope.$on('PromptForDays', function() {
|
||||
// $('#configure-tower-dialog').dialog('close');
|
||||
// $('#configure-dialog').dialog('close');
|
||||
$('#prompt-for-days').show();
|
||||
$('#prompt-for-days').dialog('open');
|
||||
Wait('stop');
|
||||
|
||||
@ -98,7 +98,7 @@ export default
|
||||
str = `ws-${data.group_name}-${data.ad_hoc_command}`;
|
||||
}
|
||||
else if(data.group_name==="control"){
|
||||
// As of Tower v. 3.1.0, there is only 1 "control"
|
||||
// As of v. 3.1.0, there is only 1 "control"
|
||||
// message, which is for expiring the session if the
|
||||
// session limit is breached.
|
||||
$log.debug(data.reason);
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
<!DOCTYPE html>
|
||||
{% load i18n %}
|
||||
<html lang="en" ng-app="Tower">
|
||||
<html lang="en" ng-app="app">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
@ -173,7 +173,7 @@
|
||||
<p>{% trans 'working...' %}</p>
|
||||
</div>
|
||||
</div>
|
||||
<tower-footer></tower-footer>
|
||||
<custom-footer></custom-footer>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user