pinafore/routes/_components/dialog/creators/showPostPrivacyDialog.js

17 lines
473 B
JavaScript
Raw Normal View History

import PostPrivacyDialog from '../components/PostPrivacyDialog.html'
import { createDialogElement } from '../helpers/createDialogElement'
import { createDialogId } from '../helpers/createDialogId'
2018-03-03 22:23:26 +01:00
export function showPostPrivacyDialog (realm) {
let dialog = new PostPrivacyDialog({
2018-04-01 03:46:44 +02:00
target: createDialogElement(),
2018-03-03 22:23:26 +01:00
data: {
id: createDialogId(),
2018-03-03 22:23:26 +01:00
label: 'Post privacy dialog',
title: 'Post privacy',
realm: realm
}
})
dialog.show()
}