glib-web 4.36.0 → 4.36.2
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 64fa536f763a59dac5250be221ff17106a5bac2fadea370d85e980d81fff6d25
|
4
|
+
data.tar.gz: 1ab54307c650b074396467ef5c94a9f09b840fbc2348f43cbf287797e263b36f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1ce0a37c6434ee753bf8a9a41f2937f4aa2b5d22e939147cf994b0446a6869e110dc497c4121a5fcff5b880d247a5a37db16d216762d390cc91d938164d709d5
|
7
|
+
data.tar.gz: 91db1d16e51c6596083805196e1fbfa7c3be45245a02b81a46600f5958e0b306867b3df300d5bc87abf0899d7d71da7a796d265d6b01d5fe2b5adefa6de1aa20
|
@@ -87,6 +87,13 @@ module Glib::Json::Libs
|
|
87
87
|
return
|
88
88
|
end
|
89
89
|
|
90
|
+
# Inside a dialog, it's easier to simply use HTTP redirect, as opposed to trying to
|
91
|
+
# get the dialog to perform manual redirection.
|
92
|
+
if glib_json_dialog_mode?
|
93
|
+
redirect_to url
|
94
|
+
return
|
95
|
+
end
|
96
|
+
|
90
97
|
json_ui_redirect_to url, status: status
|
91
98
|
end
|
92
99
|
end
|
@@ -261,7 +268,7 @@ module Glib::Json::Libs
|
|
261
268
|
if glib_json_dialog_mode?
|
262
269
|
# Only do this in dialog mode because this seems to add to the rendering time
|
263
270
|
# (i.e. longer flicker time), presumably due to the use of things like `nextTick()`.
|
264
|
-
on_response = { action: 'dialogs/close', onClose:
|
271
|
+
on_response = { action: 'dialogs/close', onClose: on_response }
|
265
272
|
end
|
266
273
|
|
267
274
|
# Use onResponse because it is harder to guarantee that `onLoad` executes in Vuejs because it relies
|