pinafore/routes/_components/dialog/creators/showStatusOptionsDialog.js
2018-04-21 09:56:53 -07:00

17 lines
488 B
JavaScript

import StatusOptionsDialog from '../components/StatusOptionsDialog.html'
import { createDialogElement } from '../helpers/createDialogElement'
import { createDialogId } from '../helpers/createDialogId'
export default function showStatusOptionsDialog (statusId) {
let dialog = new StatusOptionsDialog({
target: createDialogElement(),
data: {
id: createDialogId(),
label: 'Status options dialog',
title: '',
statusId: statusId
}
})
dialog.show()
}