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