pg_rails 7.0.8.pre.alpha.78 → 7.0.8.pre.alpha.80

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: 871482c5c249da4284c330d128e8f9d3bb456ba55b2b434fd5ae7f7620402643
4
- data.tar.gz: e12f78759a856ebd5f020f44e744e5d894fa5e5cba3e6fcc97751d3df6eecdaf
3
+ metadata.gz: 60b0661bbe95efdd5b745287b125b28ae41ed84671ad954d15d012f93749620a
4
+ data.tar.gz: 0ebe72c73adbc1fe921b93e2a6743d2e364093e73d5b2076735eaff9f7dce021
5
5
  SHA512:
6
- metadata.gz: 2259c319165804262def78cfb9ea6fb60eb9d3ac813b85f2787c9388aa0127dd905019c964b4fece97ca8a193ac514205b1768f51eac850a78c40c8ce7719503
7
- data.tar.gz: 216652a6d27af8b4f17fffa6799215dd07d2d960483e40141f0d12db189558f1234c77138ed8e3939e9c99112c7b52832d0634bb47e9c73a494097d6d516a227
6
+ metadata.gz: a647a66a04033744632a1e42bbd79db9c8e2f958e90592a4bd763d868a63d140e3527386e3bad7cef441c9053ddd41ac3ffecabcd0046df7fd1d52f96ddd2500
7
+ data.tar.gz: 477837a7b13838e1283f88a871c61f4670642e72a7c83ad885160c53e0550b3e63f1e74a8cda4897e87b51262723d87848c490662ca2dd06dac29f4cce59e041
@@ -172,15 +172,18 @@ export default class extends Controller {
172
172
  }
173
173
 
174
174
  mostrarError () {
175
- // TODO: link a contacto
176
- this.subWrapper.innerHTML = renderToStaticMarkup(
177
- <div className="resultados" tabIndex={-1}>
178
- <div className="text-center p-2 text-danger d-flex align-items-center">
179
- <i className="bi-exclamation-circle me-2"></i>
180
- Ocurrió algo inesperado. Por favor, intentá nuevamente o ponete en contacto con nosotros.
175
+ if (this.element.querySelector('.resultados .spinner-border')) {
176
+ Rollbar.error('Time out de asociable.js')
177
+ // TODO: link a contacto
178
+ this.subWrapper.innerHTML = renderToStaticMarkup(
179
+ <div className="resultados" tabIndex={-1}>
180
+ <div className="text-center p-2 text-danger d-flex align-items-center">
181
+ <i className="bi-exclamation-circle me-2"></i>
182
+ Ocurrió algo inesperado. Por favor, intentá nuevamente o ponete en contacto con nosotros.
183
+ </div>
181
184
  </div>
182
- </div>
183
- )
185
+ )
186
+ }
184
187
  }
185
188
 
186
189
  setMaxHeight () {
@@ -258,8 +261,14 @@ export default class extends Controller {
258
261
  this.lastValue = this.input.value
259
262
 
260
263
  const timerBuscandoId = setTimeout(() => {
264
+ // console.log(`timed out ${timerBuscandoId}`)
261
265
  this.buscando()
262
266
  }, 200)
267
+ // console.log(`setTimeOut ${timerBuscandoId}`)
268
+ document.addEventListener('turbo:before-stream-render', (i) => {
269
+ // console.log(`clear before stream render ${timerBuscandoId}`)
270
+ clearTimeout(timerBuscandoId)
271
+ }, { once: true })
263
272
  const timerErrorId = setTimeout(() => {
264
273
  this.mostrarError()
265
274
  }, 15000)
@@ -1,7 +1,6 @@
1
- / # locals: (collection:, query:, field_name: nil, timeout_id: nil)
1
+ / # locals: (collection:, query:, timeout_id:, field_name: nil)
2
2
  .resultados.inline tabindex="-1"
3
- - if timeout_id.present?
4
- div data-controller="clear-timeout" data-timeout-id="#{timeout_id}"
3
+ div data-controller="clear-timeout" data-timeout-id="#{timeout_id}"
5
4
  ul.list-group.list-group-flush
6
5
  - if collection.any?
7
6
  - collection.each do |object|
@@ -52,7 +52,7 @@ div
52
52
  td.text-nowrap = object.send(att)
53
53
  td.text-nowrap.text-end.ps-5
54
54
  = object.show_link
55
- = object.edit_link
55
+ = object.edit_link(text: '', klass: 'btn-light')
56
56
  = object.destroy_link
57
57
 
58
58
  .ps-3.justify-content-center
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PgRails
4
- VERSION = '7.0.8-alpha.78'
4
+ VERSION = '7.0.8-alpha.80'
5
5
  end
@@ -42,7 +42,7 @@ div
42
42
  th = object.send(att)
43
43
  td.text-nowrap.text-end.ps-5
44
44
  = object.show_link
45
- = object.edit_link
45
+ = object.edit_link(text: '', klass: 'btn-light')
46
46
  = object.destroy_link
47
47
 
48
48
  .ps-3.justify-content-center
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pg_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.0.8.pre.alpha.78
4
+ version: 7.0.8.pre.alpha.80
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martín Rosso