17 lines
481 B
JavaScript
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()
|
|
}
|