Skip to content

Commit

Permalink
add column 'status' to replication screen
Browse files Browse the repository at this point in the history
  • Loading branch information
yrudman committed Feb 2, 2018
1 parent a9a6036 commit 9700419
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/controllers/ops_controller/settings/common.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions app/views/ops/_settings_replication_tab.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
%th= _('Password')
%th= _('Port')
%th= _('Backlog')
%th= _('Status')
%th{:colspan => 2}=_('Actions')
%tbody
%tr{"ng-if" => "pglogicalReplicationModel.addEnabled"}
Expand Down Expand Up @@ -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')
Expand Down Expand Up @@ -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')
Expand Down

0 comments on commit 9700419

Please sign in to comment.