thecore_ui_rails_admin 3.5.1 → 3.5.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: 4a25dd232dbfdfb24580adcb9171ea51ce2057cec2a4c8c1c688c517ffbc38ec
4
- data.tar.gz: 8155fdf0de1aa96c27a859f6d4a8402d6bb1dc57a525996eb1510118677a1c96
3
+ metadata.gz: 8f45c9536b8cd8fe5b7a9c4586f015a7d2ea8429e636fae97cd2bed169288a53
4
+ data.tar.gz: e78ed33775d4a875c48f1d4a793fe6b128acb32c9abfeea7a28dc125c29471b2
5
5
  SHA512:
6
- metadata.gz: 674e7d39dc22303c919e82e9f0abd7139c043ef169769b21ee6d20b8a4c6ba47e9c29b6de5670e324be1f150760056ed1c0afba113ebc08d99ea5d9c2e487a88
7
- data.tar.gz: 9bfbf1f7ec2a9baeddafe77f03d710d070275eed49859a7f407c6d76c51727154d5c41649e403c551aef5aa9d8403f975a89d0b5f2e9786f65ae9ce4ebdeede3
6
+ metadata.gz: eb24dcd6e98d0100735efb15718eaaec272f08ba45c4335478bb65c592312a0f998e8038b0a27bb8875b5b7ba481cef83691e773e3f209772c78c8875bc9055a
7
+ data.tar.gz: 655bc921fc96c09d305f6a3a41b3d224937d93552107a1aa5363aadeaa2b16fe96a3115bf53114020e8546cfbc8f36fae63e284c9ae8b582132b8ef72e88dc57
@@ -48,6 +48,13 @@ $(document).on('turbo:load', function (event) {
48
48
  }
49
49
  });
50
50
 
51
+ // The a element found at #list form div div.row div.col-sm-6:nth-child(2) must throw a "Are you sure confirmation This operation can slow down the system." nag, which only if accepted will follow the link.
52
+ const export_all_element = document.querySelector("#list form div div.row div.col-sm-6:nth-child(2) a")
53
+ var confirmIt = function (e) {
54
+ if (!confirm('<%=I18n.t :are_you_sure %>')) e.preventDefault();
55
+ };
56
+ if (export_all_element) export_all_element.addEventListener('click', confirmIt, false);
57
+
51
58
  // If URL ends with /bulk_action, uncheck all checkboxes
52
59
  if (currentURL.pathname.endsWith('/bulk_action')) {
53
60
  const checkboxes = document.querySelectorAll('input[type="checkbox"][name^="schema"]');
@@ -73,9 +73,11 @@ body > div.container-fluid > div > div.col-sm-9.col-sm-offset-3.col-md-10.col-md
73
73
  }
74
74
 
75
75
  // Hide and remove export for found objects, is safer to have the possibility to export only selected rows to avoid big CPU usage.
76
- .export_collection_link,
77
- #list form div div.row div.col-sm-6:nth-child(2) {
76
+ .export_collection_link {
78
77
  display: none;
79
78
  }
79
+ // #list form div div.row div.col-sm-6:nth-child(2) {
80
+ // display: none;
81
+ // }
80
82
 
81
83
  @import 'rails_admin/custom/thecore/theming';
@@ -1,4 +1,5 @@
1
1
  en:
2
+ are_you_sure: Are you sure? This operation, if performed on a wide range of data, can lead to the crash of the server.
2
3
  export: Export
3
4
  export_all: Export All
4
5
  export_found: Export Filtered
@@ -1,4 +1,5 @@
1
1
  it:
2
+ are_you_sure: Sei sicuro? Questa operazione, se eseguita su una grande quantitá di dati, puó bloccare il server.
2
3
  export: Esporta
3
4
  export_all: Esporta Tutti
4
5
  export_found: Esporta i Filtrati
@@ -1,3 +1,3 @@
1
1
  module ThecoreUiRailsAdmin
2
- VERSION = "3.5.1".freeze
2
+ VERSION = "3.5.2".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thecore_ui_rails_admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.5.1
4
+ version: 3.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriele Tassoni