pinafore/routes/_components/dialog/showStatusOptionsDialog.js

15 lines
372 B
JavaScript
Raw Normal View History

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