forked from mystiq/hydrogen-web
hook up UI
This commit is contained in:
parent
7088b2cdc8
commit
65d02072c8
2 changed files with 9 additions and 0 deletions
|
@ -204,6 +204,10 @@ class ComposerViewModel extends ViewModel {
|
||||||
return success;
|
return success;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sendAttachment() {
|
||||||
|
this._roomVM._sendFile();
|
||||||
|
}
|
||||||
|
|
||||||
get canSend() {
|
get canSend() {
|
||||||
return !this._isEmpty;
|
return !this._isEmpty;
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,6 +30,11 @@ export class MessageComposer extends TemplateView {
|
||||||
});
|
});
|
||||||
return t.div({className: "MessageComposer"}, [
|
return t.div({className: "MessageComposer"}, [
|
||||||
this._input,
|
this._input,
|
||||||
|
t.button({
|
||||||
|
className: "attach",
|
||||||
|
title: vm.i18n`Attach`,
|
||||||
|
onClick: () => vm.sendAttachment(),
|
||||||
|
}, vm.i18n`Attach`),
|
||||||
t.button({
|
t.button({
|
||||||
className: "send",
|
className: "send",
|
||||||
title: vm.i18n`Send`,
|
title: vm.i18n`Send`,
|
||||||
|
|
Loading…
Reference in a new issue