1
0
mirror of https://github.com/nolanlawson/pinafore synced 2025-02-02 22:57:36 +01:00

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 13:23:26 -08:00
export function showPostPrivacyDialog (realm) {
let dialog = new PostPrivacyDialog({
2018-03-31 18:46:44 -07:00
target: createDialogElement(),
2018-03-03 13:23:26 -08:00
data: {
id: createDialogId(),
2018-03-03 13:23:26 -08:00
label: 'Post privacy dialog',
title: 'Post privacy',
realm: realm
}
})
dialog.show()
}