pinafore/routes/_components/dialog/helpers/showDialog.js
Nolan Lawson 8d5690d63d
remove get() with string from Svelte calls (#169)
* remove get() with string pt 1

* remove get() with string pt 2

* fix typo

* fix some null exceptions in get()

* fixup code style
2018-04-19 09:37:05 -07:00

7 lines
128 B
JavaScript

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