1import { Controller } from '@hotwired/stimulus' 2import { fetchJson } from 'utils/fetchJson' 3import { dismiss_onboarding_message_path } from 'routes' 4 5export default class extends Controller { 6 static values = { 7 messageKey: String 8 } 9 10 async dismiss(event) { 11 event.preventDefault() 12 13 const url = window.cfg.base_url + dismiss_onboarding_message_path() 14 fetchJson(url, { message_key: this.messageKeyValue }, { method: 'POST' }) 15 16 this.element.remove() 17 } 18}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.