Skip to content
Snippets Groups Projects
Commit 6e47804a authored by leandro's avatar leandro
Browse files

add offline in post commentaires

parent 93eb6f46
No related branches found
No related tags found
No related merge requests found
......@@ -297,6 +297,7 @@
</li>
</ul>
<button
v-if="isOffline() !== true"
@click="postComment"
type="button"
class="ui compact green icon button"
......@@ -452,6 +453,9 @@ export default {
},
methods: {
isOffline() {
return navigator.onLine == false;
},
pushNgo(link) {
this.$router.push({
name: "details-signalement",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment