pinafore/routes/_components/dialog/showPostPrivacyDialog.js

14 lines
323 B
JavaScript
Raw Normal View History

2018-03-03 21:23:26 +00:00
import PostPrivacyDialog from './PostPrivacyDialog.html'
export function showPostPrivacyDialog (realm) {
let dialog = new PostPrivacyDialog({
target: document.getElementById('modal-dialog'),
data: {
label: 'Post privacy dialog',
title: 'Post privacy',
realm: realm
}
})
dialog.show()
}