web47core 3.2.64 → 3.2.65
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/helpers/core_flash_toast_helper.rb +1 -14
- data/lib/web47core/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 57501dce343191bcf2d24985e57fc4c7c077de8466f8ec487cc21ec471b27a5b
|
4
|
+
data.tar.gz: 61ef91d4018be429208064d5f8d4271b3a56b743e1d04c6597f59cd60c9ff177
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 60973bc056297b6db14303e4caa6e79bee35494731e6bfc63a82549592b864b78046c630e0e4fb9368ad4dee97e46ff16814fa50c3860053a72974b4f3211d4e
|
7
|
+
data.tar.gz: 23fc9957261eb42042a58e5281f1f2e037b396f53440579f7927fb47253dbf9614f86679712e4fcd4960e2538cbd35c5159411abda6112b0b3916d08093552b8
|
@@ -31,7 +31,7 @@ module CoreFlashToastHelper
|
|
31
31
|
|
32
32
|
def toast_flash_header(key)
|
33
33
|
content_tag(:div, class: 'toast-header') do
|
34
|
-
concat(svg_icon(
|
34
|
+
concat(svg_icon(key, classes: [toast_flash_color(key), 'me-2'].join(' '), size: 24))
|
35
35
|
concat(content_tag(:div, class: ['me-auto', 'fw-medium', toast_flash_color(key)].join(' ')) { key.humanize })
|
36
36
|
concat(tag(:button,
|
37
37
|
class: 'btn-close',
|
@@ -49,17 +49,4 @@ module CoreFlashToastHelper
|
|
49
49
|
else 'text-info'
|
50
50
|
end
|
51
51
|
end
|
52
|
-
|
53
|
-
# @abstract map the flash key to a color scheme
|
54
|
-
# @return String - color mapped to the flash message type
|
55
|
-
def toast_flash_icon(key)
|
56
|
-
case key
|
57
|
-
when 'alert', 'error'
|
58
|
-
'alert-square-rounded'
|
59
|
-
when 'warning'
|
60
|
-
'alert-triangle'
|
61
|
-
else
|
62
|
-
'info-circle'
|
63
|
-
end
|
64
|
-
end
|
65
52
|
end
|
data/lib/web47core/version.rb
CHANGED