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