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