Revision 6f5e909f
Added by Walden Raines about 10 years ago
engines/bastion/app/assets/javascripts/bastion/content-views/details/content-view-promotion.controller.js | ||
---|---|---|
* @name Bastion.content-views.controller:ContentViewPromotionController
|
||
*
|
||
* @requires $scope
|
||
* @requires gettext
|
||
* @requires translate
|
||
* @requires ContentViewVersion
|
||
* @requires Organization
|
||
* @requires CurrentOrganization
|
||
... | ... | |
* within the table.
|
||
*/
|
||
angular.module('Bastion.content-views').controller('ContentViewPromotionController',
|
||
['$scope', 'gettext', 'ContentViewVersion', 'Organization', 'CurrentOrganization',
|
||
function ($scope, gettext, ContentViewVersion, Organization, CurrentOrganization) {
|
||
['$scope', 'translate', 'ContentViewVersion', 'Organization', 'CurrentOrganization',
|
||
function ($scope, translate, ContentViewVersion, Organization, CurrentOrganization) {
|
||
|
||
$scope.promotion = {};
|
||
|
||
... | ... | |
};
|
||
|
||
function success() {
|
||
var message = gettext('Successfully initiated promotion of %cv version %ver to %env.');
|
||
var message = translate('Successfully initiated promotion of %cv version %ver to %env.');
|
||
message = message.replace('%cv', $scope.contentView.name).replace('%env', $scope.selectedEnvironment.name);
|
||
message = message.replace('%ver', $scope.version.version);
|
||
$scope.promoting = false;
|
Also available in: Unified diff
Fixes #4785, replace gettext with translate for extraction/replacement.