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 +4 -4
- data/pg_associable/app/javascript/asociable_controller.tsx +17 -8
- data/pg_associable/app/views/pg_associable/_resultados_inline.html.slim +2 -3
- data/pg_engine/app/views/pg_engine/base/index.html.slim +1 -1
- data/pg_rails/lib/version.rb +1 -1
- data/pg_scaffold/lib/generators/pg_slim/templates/index.html.slim +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 60b0661bbe95efdd5b745287b125b28ae41ed84671ad954d15d012f93749620a
|
4
|
+
data.tar.gz: 0ebe72c73adbc1fe921b93e2a6743d2e364093e73d5b2076735eaff9f7dce021
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
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
|
-
|
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
|
1
|
+
/ # locals: (collection:, query:, timeout_id:, field_name: nil)
|
2
2
|
.resultados.inline tabindex="-1"
|
3
|
-
-
|
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|
|
data/pg_rails/lib/version.rb
CHANGED