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

19 lines
621 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 05:45:19 +01:00
2018-04-15 06:18:48 +01:00
export function showAccountProfileOptionsDialog (account, relationship, verifyCredentials) {
2018-04-05 05:45:19 +01:00
let dialog = new AccountProfileOptionsDialog({
target: createDialogElement(),
data: {
id: createDialogId(),
2018-04-05 05:45:19 +01:00
label: 'Profile options dialog',
title: '',
account: account,
2018-04-15 06:18:48 +01:00
relationship: relationship,
verifyCredentials: verifyCredentials
2018-04-05 05:45:19 +01:00
}
})
dialog.show()
}