mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +01:00
hook up UI
This commit is contained in:
parent
7088b2cdc8
commit
65d02072c8
@ -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 New Issue
Block a user