diff --git a/app/controllers/ops_controller/settings/common.rb b/app/controllers/ops_controller/settings/common.rb index 3b4ee858bdc..19670e96e39 100644 --- a/app/controllers/ops_controller/settings/common.rb +++ b/app/controllers/ops_controller/settings/common.rb @@ -280,7 +280,8 @@ def get_subscriptions_array(subscriptions) :password => '●●●●●●●●', :port => sub.port, :provider_region => sub.provider_region, - :backlog => number_to_human_size(sub.backlog) + :backlog => number_to_human_size(sub.backlog), + :status => sub.status } end end diff --git a/app/views/ops/_settings_replication_tab.html.haml b/app/views/ops/_settings_replication_tab.html.haml index 4d27f42466b..d4f4ab55816 100644 --- a/app/views/ops/_settings_replication_tab.html.haml +++ b/app/views/ops/_settings_replication_tab.html.haml @@ -36,6 +36,7 @@ %th= _('Password') %th= _('Port') %th= _('Backlog') + %th= _('Status') %th{:colspan => 2}=_('Actions') %tbody %tr{"ng-if" => "pglogicalReplicationModel.addEnabled"} @@ -74,6 +75,7 @@ "name" => "port", "ng-model" => "pglogicalReplicationModel.port"} %td + %td %td{:class => "action-cell"} %button.btn.btn-default.btn-block.btn-sm{:type => "button", "ng-disabled" => "!subscriptionValid()", "ng-click" => "addSubscription()"}= _('Accept') @@ -144,6 +146,8 @@ %td {{subscription.backlog}} + %td + {{subscription.status}} %td{:class => "action-cell", "ng-show" => "showCancelDelete($index)"} %button.btn.btn-default.btn-sm{:type => "button", "ng-click" => "cancelDelete($index)"}= _('Cancel Delete')