pinafore/routes/_components/dialog/creators/showPostPrivacyDialog.js
2018-04-21 09:56:53 -07:00

17 lines
481 B
JavaScript

import PostPrivacyDialog from '../components/PostPrivacyDialog.html'
import { createDialogElement } from '../helpers/createDialogElement'
import { createDialogId } from '../helpers/createDialogId'
export default function showPostPrivacyDialog (realm) {
let dialog = new PostPrivacyDialog({
target: createDialogElement(),
data: {
id: createDialogId(),
label: 'Post privacy dialog',
title: 'Post privacy',
realm: realm
}
})
dialog.show()
}