glib-web 3.27.0 → 3.27.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ce0abd2e16afb07a3fd1a273acc664bde10d9355fb66e5aec0e26cb1fc568e9f
4
- data.tar.gz: e2c72cf8ff18e4ca3e711f8481a81fd7c03e5f3cea5b86da916bf6675a990af5
3
+ metadata.gz: 5d3975f40436740c9cebdcb654cd5292e9d3f772f442f3078b79bdb328657fe0
4
+ data.tar.gz: f95e4819e89b6f1b04d17cd375c1b904137bb6c1df2f7f48cab7f549ff608e51
5
5
  SHA512:
6
- metadata.gz: 7b82ab5f93bf800bd5436c05e7e7ea1e54d3a9bf269a3d691f8a8591c31ab785bf6ed6d22b2992a0dee1de87b6efcc65358aaf4ac2a7de9804f5c056d6e7053a
7
- data.tar.gz: 594cfd8502b6d515bcab04423c8d327ffc5fddab9ce879d88f34a3ded04dcf500f77581f7865641b83877be90b2c5e29672a69e41888501f31de3b9569fc476b
6
+ metadata.gz: 6bde54f472baee8e766265a748e09fb07afdaf86878e054f35ce49ead3fd75fd54491fc6d568fbccdde5b8fc750832bf21d376784c9a6750dff521121566d545
7
+ data.tar.gz: 1aefdd5d62f0958ecf2df76e5737cab190dff943b7415116e3c1a088d6304346230373bdfcf0e66b396f60f9b2bf4ef778b406b24029810daec9b9acb8a55cdc
@@ -57,6 +57,10 @@ module Glib::Auth
57
57
 
58
58
  end
59
59
 
60
+ def glib_raise_forbidden
61
+ raise UnauthorizedError
62
+ end
63
+
60
64
  private
61
65
  def raise_access_denied(record, policy)
62
66
  raise UnauthorizedError.new(record: record, policy: policy, query: "#{action_name}?")
@@ -229,7 +229,9 @@ module Glib::Json::Libs
229
229
  end
230
230
 
231
231
  def json_ui_redirect_to(url)
232
- on_response = { action: 'windows/open', url: url }
232
+ # Use windows_reload instead of windows_open so clicking back will skip the bridging page.
233
+ # on_response = { action: 'windows/open', url: url }
234
+ on_response = { action: 'windows/reload', url: url }
233
235
 
234
236
  if glib_json_dialog_mode?
235
237
  # Only do this in dialog mode because this seems to add to the rendering time
@@ -54,9 +54,11 @@ class Glib::JsonUi::ActionBuilder
54
54
  bool :updateExisting
55
55
  end
56
56
 
57
- # deprecated
57
+ # Deprecation canceled. This is still useful for a scenario where the previous dialog
58
+ # was unknown, so we simply want to reload its content.
58
59
  class Reload < Action
59
- panels_builder :content, :body
60
+ # Deprecated. Should just use dialogs_show or dialogs_open if
61
+ # these attributes are needed.
60
62
  string :url, cache: true
61
63
  bool :showClose # deprecated
62
64
  bool :disableCloseButton
@@ -30,6 +30,13 @@ class Glib::JsonUi::ActionBuilder
30
30
  required :fallbackUrl
31
31
  end
32
32
 
33
+ class CloseWithOpen < Action
34
+ string :url
35
+ action :onOpen
36
+
37
+ required :url
38
+ end
39
+
33
40
  # Any component can listen to the refresh_state event and react appropriately.
34
41
  # E.g. Stripe credit card component can refresh its token to make sure it is not stale.
35
42
  class RefreshState < Action
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: glib-web
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.27.0
4
+ version: 3.27.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - ''