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