kenui 3.0.6 → 4.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 +4 -4
- data/app/controllers/kenui/email_notifications_controller.rb +9 -6
- data/config/routes.rb +4 -4
- data/lib/kenui/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b1981be533d69e2697cd70118db566ab941428f99562c1e3fbe53f4ce01c8026
|
|
4
|
+
data.tar.gz: 4e6bb70dd66c0e16c240aa9fc219ca05a9648bbf673618c2cf5faedfa166e17e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c5350841fd2c6e0db90c8c4d4478eb42cb115f5d00355edb76f51499b31ad6a2f3136fb6d08ab17d9aa05071f778a04f9a9fac87d24b47aad9ccacb22ec06df3
|
|
7
|
+
data.tar.gz: a1d0198f9163e84d9c2a357a0a92f0d4babec779f4e37d9c8453b8bf13e033daae204b10005c7d5b3574f19987ea92781eef683480131a3f6bf3d6284e658c08
|
|
@@ -27,7 +27,7 @@ module Kenui
|
|
|
27
27
|
events = ''
|
|
28
28
|
unless email_notifications_configuration.first.is_a?(FalseClass)
|
|
29
29
|
configuration = email_notifications_configuration.select { |event| event[:kbAccountId] == row.account_id }
|
|
30
|
-
events = configuration.
|
|
30
|
+
events = configuration.pluck(:eventType).join(', ')
|
|
31
31
|
end
|
|
32
32
|
|
|
33
33
|
data << [
|
|
@@ -37,12 +37,12 @@ module Kenui
|
|
|
37
37
|
view_context.link_to('Edit'.html_safe,
|
|
38
38
|
'#configureEmailNotification',
|
|
39
39
|
data: { name: row.name, account_id: row.account_id,
|
|
40
|
-
events
|
|
40
|
+
events:, bs_toggle: 'modal', target: '#configureEmailNotification' })
|
|
41
41
|
]
|
|
42
42
|
end
|
|
43
43
|
|
|
44
44
|
respond_to do |format|
|
|
45
|
-
format.json { render json: { data
|
|
45
|
+
format.json { render json: { data:, recordsTotal: record_total, recordsFiltered: record_total } }
|
|
46
46
|
end
|
|
47
47
|
end
|
|
48
48
|
|
|
@@ -50,7 +50,7 @@ module Kenui
|
|
|
50
50
|
data = Kenui::EmailNotificationService.get_events_to_consider(options_for_klient)
|
|
51
51
|
|
|
52
52
|
respond_to do |format|
|
|
53
|
-
format.json { render json: { data:
|
|
53
|
+
format.json { render json: { data: } }
|
|
54
54
|
end
|
|
55
55
|
end
|
|
56
56
|
|
|
@@ -59,14 +59,14 @@ module Kenui
|
|
|
59
59
|
data = Kenui::EmailNotificationService.get_configuration_per_account(account_id, options_for_klient)
|
|
60
60
|
|
|
61
61
|
respond_to do |format|
|
|
62
|
-
format.json { render json: { data:
|
|
62
|
+
format.json { render json: { data: } }
|
|
63
63
|
end
|
|
64
64
|
end
|
|
65
65
|
|
|
66
66
|
def set_configuration
|
|
67
67
|
configuration = params.require(:configuration)
|
|
68
68
|
|
|
69
|
-
event_types = Array(configuration[:event_types]).
|
|
69
|
+
event_types = Array(configuration[:event_types]).compact_blank
|
|
70
70
|
|
|
71
71
|
is_success, message = Kenui::EmailNotificationService.set_configuration_per_account(configuration[:account_id],
|
|
72
72
|
event_types,
|
|
@@ -79,6 +79,9 @@ module Kenui
|
|
|
79
79
|
flash[:error] = message
|
|
80
80
|
end
|
|
81
81
|
redirect_to email_notifications_path
|
|
82
|
+
rescue StandardError => e
|
|
83
|
+
flash[:error] = e.message
|
|
84
|
+
redirect_to email_notifications_path
|
|
82
85
|
end
|
|
83
86
|
end
|
|
84
87
|
end
|
data/config/routes.rb
CHANGED
|
@@ -6,9 +6,9 @@ Kenui::Engine.routes.draw do
|
|
|
6
6
|
resources :email_notifications, only: [:index]
|
|
7
7
|
|
|
8
8
|
scope '/email_notifications' do
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
get '/pagination' => 'email_notifications#pagination', :as => 'email_notification_pagination'
|
|
10
|
+
get '/configuration' => 'email_notifications#configuration', :as => 'email_notifications_get_configuration'
|
|
11
|
+
post '/configuration' => 'email_notifications#set_configuration', :as => 'email_notifications_configuration'
|
|
12
|
+
get '/events_to_consider' => 'email_notifications#events_to_consider', :as => 'email_notification_events_to_consider'
|
|
13
13
|
end
|
|
14
14
|
end
|
data/lib/kenui/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: kenui
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 4.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:
|
|
11
|
+
date: 2026-09-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: killbill-assets-ui
|
|
@@ -44,14 +44,14 @@ dependencies:
|
|
|
44
44
|
requirements:
|
|
45
45
|
- - "~>"
|
|
46
46
|
- !ruby/object:Gem::Version
|
|
47
|
-
version: '7.
|
|
47
|
+
version: '7.2'
|
|
48
48
|
type: :runtime
|
|
49
49
|
prerelease: false
|
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
|
51
51
|
requirements:
|
|
52
52
|
- - "~>"
|
|
53
53
|
- !ruby/object:Gem::Version
|
|
54
|
-
version: '7.
|
|
54
|
+
version: '7.2'
|
|
55
55
|
description: Rails UI plugin for the Email notification plugin.
|
|
56
56
|
email: killbilling-users@googlegroups.com
|
|
57
57
|
executables: []
|
|
@@ -97,7 +97,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
97
97
|
requirements:
|
|
98
98
|
- - ">="
|
|
99
99
|
- !ruby/object:Gem::Version
|
|
100
|
-
version:
|
|
100
|
+
version: 3.1.0
|
|
101
101
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
102
102
|
requirements:
|
|
103
103
|
- - ">="
|