Sha256: 839b53c518f1cb414a1f9fda508784c650ca3eb1fe3502bad2e0234939ad3f72

Contents?: true

Size: 193 Bytes

Versions: 3

Compression:

Stored size: 193 Bytes

Contents

import { Controller } from "@hotwired/stimulus"

export default class extends Controller {
  confirm(event) {
    if (!confirm(event.params.message)) {
      event.preventDefault()
    }
  }
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
solidus_admin-0.3.2 app/components/solidus_admin/users/edit/api_access/component.js
solidus_admin-0.3.1 app/components/solidus_admin/users/edit/api_access/component.js
solidus_admin-0.3.0 app/components/solidus_admin/users/edit/api_access/component.js