pinafore/routes/_components/dialog/helpers/closeDialog.js

7 lines
130 B
JavaScript
Raw Normal View History

import { emit } from '../../../_utils/eventBus'
export function close () {
let { id } = this.get()
emit('closeDialog', id)
}