alchemy_cms 8.3.11 → 8.3.12
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/assets/builds/alchemy/alchemy_admin.min.js +1 -1
- data/app/assets/builds/alchemy/alchemy_admin.min.js.map +1 -1
- data/app/controllers/alchemy/admin/update_checks_controller.rb +2 -0
- data/app/javascript/alchemy_admin/components/update_check.js +1 -1
- data/lib/alchemy/version.rb +1 -1
- metadata +1 -1
|
@@ -7,12 +7,14 @@ module Alchemy
|
|
|
7
7
|
if update_check_result[:update_available]
|
|
8
8
|
render json: {
|
|
9
9
|
status: false,
|
|
10
|
+
update_available: true,
|
|
10
11
|
latest_version: update_check_result[:latest_version],
|
|
11
12
|
message: Alchemy.t("Update available")
|
|
12
13
|
}
|
|
13
14
|
else
|
|
14
15
|
render json: {
|
|
15
16
|
status: true,
|
|
17
|
+
update_available: false,
|
|
16
18
|
latest_version: update_check_result[:latest_version],
|
|
17
19
|
message: Alchemy.t("Alchemy is up to date")
|
|
18
20
|
}
|
|
@@ -26,7 +26,7 @@ class UpdateCheck extends HTMLElement {
|
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
showStatus(responseJSON) {
|
|
29
|
-
if (responseJSON["
|
|
29
|
+
if (responseJSON["update_available"] === true) {
|
|
30
30
|
this.querySelector(".update_available").classList.remove("hidden")
|
|
31
31
|
} else {
|
|
32
32
|
this.querySelector(".up_to_date").classList.remove("hidden")
|
data/lib/alchemy/version.rb
CHANGED