Disable upload button instead of removing it from dom.

This commit is contained in:
Richard Lewis 2018-09-12 22:44:49 +03:00 committed by Pavel Djundik
parent dd686b563d
commit cd76512619

View file

@ -15,7 +15,7 @@
@input="setPendingMessage" @input="setPendingMessage"
@keypress.enter.exact.prevent="onSubmit" /> @keypress.enter.exact.prevent="onSubmit" />
<span <span
v-if="this.$root.isConnected && this.$root.isFileUploadEnabled" v-if="this.$root.isFileUploadEnabled"
id="upload-tooltip" id="upload-tooltip"
class="tooltipped tooltipped-w tooltipped-no-touch" class="tooltipped tooltipped-w tooltipped-no-touch"
aria-label="Upload File" aria-label="Upload File"
@ -28,7 +28,8 @@
<button <button
id="upload" id="upload"
type="button" type="button"
aria-label="Upload file" /> aria-label="Upload file"
:disabled="!this.$root.isConnected" />
</span> </span>
<span <span
id="submit-tooltip" id="submit-tooltip"