17 lines
429 B
JavaScript
17 lines
429 B
JavaScript
|
import MuteDialog from '../components/MuteDialog.html'
|
||
|
import { createDialogElement } from '../helpers/createDialogElement'
|
||
|
import { createDialogId } from '../helpers/createDialogId'
|
||
|
|
||
|
export default function showMuteDialog (account) {
|
||
|
let dialog = new MuteDialog({
|
||
|
target: createDialogElement(),
|
||
|
data: {
|
||
|
id: createDialogId(),
|
||
|
label: 'Mute dialog',
|
||
|
account
|
||
|
}
|
||
|
})
|
||
|
dialog.show()
|
||
|
return dialog
|
||
|
}
|