killbill-kpm-ui 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2b7025eef9ab8cebe65d63c33833a9f515885c35fd1f67b4aaf43afae3c24d0a
|
4
|
+
data.tar.gz: d006e0105f7df31d7bb86264d1889e5dd7f0a8307db3a1194272e413da43159d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 :
|
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> Operation in progress</div>
|
6
7
|
<%= link_to('<i class="fa fa-refresh"></i> 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 => '
|
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 => '
|
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'>
|
data/lib/kpm/version.rb
CHANGED
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.
|
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-
|
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
|