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

7 lines
130 B
JavaScript

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