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