pinafore/routes/_components/dialog/creators/showStatusOptionsDialog.js

17 lines
482 B
JavaScript
Raw Normal View History

import StatusOptionsDialog from '../components/StatusOptionsDialog.html'
import { createDialogElement } from '../helpers/createDialogElement'
import { createDialogId } from '../helpers/createDialogId'
2018-03-12 03:40:32 +01:00
export default function showStatusOptionsDialog (status) {
2018-03-12 03:40:32 +01:00
let dialog = new StatusOptionsDialog({
2018-04-01 03:46:44 +02:00
target: createDialogElement(),
2018-03-12 03:40:32 +01:00
data: {
id: createDialogId(),
2018-03-12 03:40:32 +01:00
label: 'Status options dialog',
2018-04-05 07:28:22 +02:00
title: '',
status: status
2018-03-12 03:40:32 +01:00
}
})
dialog.show()
}