Skip to content

Commit

Permalink
Merge pull request #5095 from himdel/excluded-bz1656066
Browse files Browse the repository at this point in the history
Region Replication - refresh code mirror after load
  • Loading branch information
mzazrivec committed Dec 18, 2018
2 parents 4680abf + e1bdeac commit a55668e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
@@ -1,4 +1,4 @@
ManageIQ.angular.app.controller('pglogicalReplicationFormController', ['$http', '$scope', 'pglogicalReplicationFormId', 'miqService', '$q', function($http, $scope, pglogicalReplicationFormId, miqService, $q) {
ManageIQ.angular.app.controller('pglogicalReplicationFormController', ['$http', '$scope', 'pglogicalReplicationFormId', 'miqService', '$q', '$timeout', function($http, $scope, pglogicalReplicationFormId, miqService, $q, $timeout) {
var init = function() {
$scope.pglogicalReplicationModel = {
replication_type: 'none',
Expand Down Expand Up @@ -316,6 +316,10 @@ ManageIQ.angular.app.controller('pglogicalReplicationFormController', ['$http',
$scope.afterGet = true;
$scope.modelCopy = angular.copy( $scope.pglogicalReplicationModel );
miqService.sparkleOff();

$timeout(function() {
$scope.codeMirrorRefresh = true;
});
}

init();
Expand Down
1 change: 1 addition & 0 deletions app/views/ops/_settings_replication_tab.html.haml
Expand Up @@ -188,6 +188,7 @@
= _('Excluded Tables')
%br
%textarea{"ui-codemirror" => "",
"ui-refresh" => "codeMirrorRefresh",
:name => "exclusion_list",
'ng-model' => 'pglogicalReplicationModel.exclusion_list',
'checkchange' => ''}
Expand Down

0 comments on commit a55668e

Please sign in to comment.