Fix clicking red banner not hiding the error

This commit is contained in:
Pavel Djundik 2018-09-14 16:28:39 +03:00
parent b3e86dbab4
commit 7b3f7d1c59

View File

@ -69,7 +69,7 @@
<div <div
v-if="this.$root.currentUserVisibleError" v-if="this.$root.currentUserVisibleError"
id="connection-error" id="connection-error"
@click="this.$root.currentUserVisibleError = null">{{ this.$root.currentUserVisibleError }}</div> @click="hideUserVisibleError">{{ this.$root.currentUserVisibleError }}</div>
<span id="upload-progressbar" /> <span id="upload-progressbar" />
<ChatInput <ChatInput
:network="network" :network="network"
@ -107,5 +107,10 @@ export default {
} }
}, },
}, },
methods: {
hideUserVisibleError() {
this.$root.currentUserVisibleError = null;
}
},
}; };
</script> </script>