alchemy_cms 8.4.6 → 8.4.7
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/app/javascript/alchemy_admin/components/uploader.js +1 -3
- data/app/javascript/alchemy_admin/utils/tom_select.js +3 -2
- 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")
|
|
@@ -62,9 +62,7 @@ export class Uploader extends HTMLElement {
|
|
|
62
62
|
event.preventDefault()
|
|
63
63
|
this.#toggleDropzoneClass(false)
|
|
64
64
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
this.uploadFiles(files)
|
|
65
|
+
this.uploadFiles([...event.dataTransfer.files])
|
|
68
66
|
}
|
|
69
67
|
|
|
70
68
|
#onDropzoneDragover = (event) => {
|
|
@@ -153,9 +153,10 @@ export const dropdownMessages = {
|
|
|
153
153
|
</div>`
|
|
154
154
|
},
|
|
155
155
|
// Tom Select prepends this above the results it already has, which would
|
|
156
|
-
// shift them.
|
|
156
|
+
// shift them. Without results it must render, though, or Tom Select closes
|
|
157
|
+
// the dropdown and the typed text is lost.
|
|
157
158
|
loading() {
|
|
158
|
-
if (
|
|
159
|
+
if (this.dropdown_content.querySelector(".option")) return
|
|
159
160
|
return `<div class="loading-results">${translate("Please wait, loading")}…</div>`
|
|
160
161
|
},
|
|
161
162
|
no_results() {
|
data/lib/alchemy/version.rb
CHANGED