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