forked from mystiq/hydrogen-web
show either attachment or send button, depending on composer value
This commit is contained in:
parent
c3203fdacd
commit
2f15c9a4a7
2 changed files with 10 additions and 4 deletions
|
@ -579,8 +579,12 @@ a {
|
|||
background-position: center;
|
||||
}
|
||||
|
||||
.MessageComposer_input > button.send:disabled {
|
||||
background-color: #E3E8F0;
|
||||
.MessageComposer.MessageComposer_canSend button.sendFile {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.MessageComposer:not(.MessageComposer_canSend) button.send {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.SettingsBody {
|
||||
|
|
|
@ -65,11 +65,13 @@ export class MessageComposer extends TemplateView {
|
|||
t.button({
|
||||
className: "send",
|
||||
title: vm.i18n`Send`,
|
||||
disabled: vm => !vm.canSend,
|
||||
onClick: () => this._trySend(),
|
||||
}, vm.i18n`Send`),
|
||||
]);
|
||||
return t.div({ className: "MessageComposer" }, [replyPreview, input]);
|
||||
return t.div({ className: {
|
||||
MessageComposer: true,
|
||||
MessageComposer_canSend: vm => vm.canSend
|
||||
} }, [replyPreview, input]);
|
||||
}
|
||||
|
||||
unmount() {
|
||||
|
|
Loading…
Reference in a new issue