Skip to content

Commit

Permalink
Merge pull request #443 from carbonin/add_backlog_to_replication_ui
Browse files Browse the repository at this point in the history
Add subscription backlog to replication tab
  • Loading branch information
Dan Clarizio authored Feb 27, 2017
2 parents a945631 + 2f94706 commit 4ca40d3
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 @@ -277,7 +277,8 @@ def get_subscriptions_array(subscriptions)
:user => sub.user,
:password => '●●●●●●●●',
:port => sub.port,
:provider_region => sub.provider_region
:provider_region => sub.provider_region,
:backlog => number_to_human_size(sub.backlog)
}
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= _('Username')
%th= _('Password')
%th= _('Port')
%th= _('Backlog')
%th{:colspan => 2}=_('Actions')
%tbody
%tr{"ng-if" => "pglogicalReplicationModel.addEnabled"}
Expand Down Expand Up @@ -73,6 +74,7 @@
"id" => "port",
"name" => "port",
"ng-model" => "pglogicalReplicationModel.port"}
%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 @@ -142,6 +144,8 @@
"name" => "port",
"ng-model" => "pglogicalReplicationModel.port"}
%td
{{subscription.backlog}}
%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 4ca40d3

Please sign in to comment.