pinafore/routes/_components/dialog/creators/showStatusOptionsDialog.js
2018-04-08 16:56:20 -07:00

17 lines
480 B
JavaScript

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