killbill-kpm-ui 2.0.0 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fdbc04b26c436283f357622893a3ee362a964b7f921c8392537bd31f4b75fe5f
4
- data.tar.gz: '058b708bbdfb03150fc0e5ea0defbc06e85208307d2d03928e27790c0e8eb66c'
3
+ metadata.gz: 2b7025eef9ab8cebe65d63c33833a9f515885c35fd1f67b4aaf43afae3c24d0a
4
+ data.tar.gz: d006e0105f7df31d7bb86264d1889e5dd7f0a8307db3a1194272e413da43159d
5
5
  SHA512:
6
- metadata.gz: dd2d30639edf9d039b90831f57ae44f971c0c17477958f8d8ffa5e97701bfe35bc4cd61d1089440900b1efdd84e9dc9386f995df2b984e96ad7491060519c24b
7
- data.tar.gz: d8853cd0a36a042731d3a2673a094b3169ee901d01b6e9a68eff80c27436621c9b8c024f1b61ccc66628ecc0bcdf1e4ca7ef02f0e78a8af442391a83b566b0b6
6
+ metadata.gz: ffd25cd903eda24b3a05cd6a4feb46ff9183f8ccf394828a50e258290344a58b555c1bdce2f19bec268d70a4c081569872904b27d34abd7a5c5f8c8036332633
7
+ data.tar.gz: 32d3dcc22b3f37fe13a365fdb295817a6193c821d2586f36af156cb02b5e2495f85f131353f9192cb9b9a1d17b82b2ebc6ab47144eb14b2ea6a48b655ec9bf66
@@ -8,6 +8,8 @@ module KPM
8
8
  include ActionController::Live
9
9
 
10
10
  def index
11
+ @installing = !params[:i].blank?
12
+
11
13
  @nodes_info = ::KillBillClient::Model::NodesInfo.nodes_info(options_for_klient)
12
14
 
13
15
  # For convenience, put pure OSGI bundles at the bottom
@@ -76,7 +78,7 @@ module KPM
76
78
 
77
79
  def install_plugin
78
80
  trigger_node_plugin_command('INSTALL_PLUGIN')
79
- redirect_to :action => :index
81
+ redirect_to nodes_info_index_path(:i => 1)
80
82
  end
81
83
 
82
84
  def uninstall_plugin
@@ -3,6 +3,7 @@
3
3
  <div class="column-block">
4
4
 
5
5
  <h1>Configured instances
6
+ <div id="install-in-progress" class="btn btn-xs text-success" style="display: none;"><i class="fa fa-refresh"></i>&nbsp;Operation in progress</div>
6
7
  <%= link_to('<i class="fa fa-refresh"></i>&nbsp;Operation complete, reload page'.html_safe, url_for, :id => "reload-page", :class => 'btn btn-xs text-success', :style => "display: none;") %>
7
8
  <% if kpm_plugin_installed?(@nodes_info) %>
8
9
  <div class="pull-right">
@@ -46,7 +47,22 @@
46
47
  setTimeout(fakeOperationComplete, 6000);
47
48
  });
48
49
 
50
+ <%- if @installing %>
51
+ // Prevent other clicks
52
+ $('.plugin-link').removeAttr('data-remote')
53
+ .removeAttr('data-method')
54
+ .removeAttr('href')
55
+ $('#nodes-table-wrapper').css({ opacity: 0.5 });
56
+
57
+ $('#install-in-progress').show();
58
+ $('#install-in-progress').children().addClass('fa-spin');
59
+
60
+ setTimeout(fakeOperationComplete, 6000);
61
+ <% end %>
62
+
49
63
  function fakeOperationComplete() {
64
+ $('#install-in-progress').hide();
65
+
50
66
  $('.plugin-link').children().removeClass('fa-spin');
51
67
  $('#nodes-table-wrapper').fadeTo("slow", 0.5);
52
68
  $('#reload-page').fadeIn("slow");
@@ -2,7 +2,7 @@
2
2
  <div class="form-group">
3
3
  <%= label_tag :plugin_key, 'Plugin key', :class => 'col-sm-2 control-label' %>
4
4
  <div class="col-sm-9">
5
- <%= text_field_tag :plugin_key, '', :class => 'form-control', :placeholder => 'Plugin key', :required => true %>
5
+ <%= text_field_tag :plugin_key, '', :class => 'form-control', :placeholder => 'Unique identifier for this plugin, e.g. myCompany:myPluginName', :required => true %>
6
6
  </div>
7
7
  </div>
8
8
  <div class="form-group">
@@ -14,7 +14,7 @@
14
14
  <div class="form-group">
15
15
  <%= label_tag :plugin_uri, 'URI', :class => 'col-sm-2 control-label' %>
16
16
  <div class="col-sm-9">
17
- <%= text_field_tag :plugin_uri, '', :class => 'form-control', :placeholder => 'Plugin URI', :required => true %>
17
+ <%= text_field_tag :plugin_uri, '', :class => 'form-control', :placeholder => 'HTTP(S) url accessible from all Kill Bill nodes', :required => true %>
18
18
  </div>
19
19
  </div>
20
20
  <div class='form-group'>
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module KPM
4
- VERSION = '2.0.0'
4
+ VERSION = '2.0.1'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: killbill-kpm-ui
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kill Bill core team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-01-21 00:00:00.000000000 Z
11
+ date: 2020-02-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jquery-datatables-rails