pinafore/routes/_components/dialog/creators/showAccountProfileOptionsDialog.js
2018-04-08 16:56:20 -07:00

17 lines
510 B
JavaScript

import AccountProfileOptionsDialog from '../components/AccountProfileOptionsDialog.html'
import { createDialogElement } from '../helpers/createDialogElement'
import { createDialogId } from '../helpers/createDialogId'
export function showAccountProfileOptionsDialog (account) {
let dialog = new AccountProfileOptionsDialog({
target: createDialogElement(),
data: {
id: createDialogId(),
label: 'Profile options dialog',
title: '',
account: account
}
})
dialog.show()
}