Sha256: 492deb847459db15c76ff26eafd80b37f7cfe47de993046c3df6d68fdf8f2237

Contents?: true

Size: 447 Bytes

Versions: 61

Compression:

Stored size: 447 Bytes

Contents

/* eslint-disable camelcase */
import { StreamActions } from '@hotwired/turbo'

// TODO: move these to the avo_filters gem

StreamActions.close_filters_dropdown = function () {
  document.querySelector('.filters-dropdown-selector').classList.add('hidden')
}

StreamActions.open_filter = function () {
  const id = this.getAttribute('unique-id')
  setTimeout(() => {
    document.querySelector(`[data-filter-id="${id}"] .pill`).click()
  }, 150)
}

Version data entries

61 entries across 61 versions & 1 rubygems

Version Path
avo-3.0.0.pre6 app/javascript/js/custom-stream-actions.js
avo-3.0.0.pre4 app/javascript/js/custom-stream-actions.js
avo-3.0.0.pre3 app/javascript/js/custom-stream-actions.js
avo-3.0.0.pre2 app/javascript/js/custom-stream-actions.js
avo-3.0.0.pre1 app/javascript/js/custom-stream-actions.js
avo-3.2.2 app/javascript/js/custom-stream-actions.js
avo-3.1.7 app/javascript/js/custom-stream-actions.js
avo-3.1.6 app/javascript/js/custom-stream-actions.js
avo-3.1.5 app/javascript/js/custom-stream-actions.js
avo-3.1.4 app/javascript/js/custom-stream-actions.js
avo-3.1.3 app/javascript/js/custom-stream-actions.js
avo-3.1.2 app/javascript/js/custom-stream-actions.js
avo-3.1.1 app/javascript/js/custom-stream-actions.js
avo-3.1.0 app/javascript/js/custom-stream-actions.js
avo-3.0.8 app/javascript/js/custom-stream-actions.js
avo-3.0.7 app/javascript/js/custom-stream-actions.js
avo-3.0.6 app/javascript/js/custom-stream-actions.js
avo-3.0.5 app/javascript/js/custom-stream-actions.js
avo-3.0.4 app/javascript/js/custom-stream-actions.js
avo-3.0.3 app/javascript/js/custom-stream-actions.js