pinafore/routes/_components/dialog/creators/showAccountProfileOptionsDi...

17 lines
510 B
JavaScript
Raw Normal View History

import AccountProfileOptionsDialog from '../components/AccountProfileOptionsDialog.html'
import { createDialogElement } from '../helpers/createDialogElement'
import { createDialogId } from '../helpers/createDialogId'
2018-04-05 06:45:19 +02:00
export function showAccountProfileOptionsDialog (account) {
let dialog = new AccountProfileOptionsDialog({
target: createDialogElement(),
data: {
id: createDialogId(),
2018-04-05 06:45:19 +02:00
label: 'Profile options dialog',
title: '',
account: account
}
})
dialog.show()
}