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
1 merge request!187REDMINE_ISSUES-12446
This commit is part of merge request !187. Comments created here will be created in the context of that merge request.
...@@ -297,6 +297,7 @@ ...@@ -297,6 +297,7 @@
</li> </li>
</ul> </ul>
<button <button
v-if="isOffline() !== true"
@click="postComment" @click="postComment"
type="button" type="button"
class="ui compact green icon button" class="ui compact green icon button"
...@@ -452,6 +453,9 @@ export default { ...@@ -452,6 +453,9 @@ export default {
}, },
methods: { methods: {
isOffline() {
return navigator.onLine == false;
},
pushNgo(link) { pushNgo(link) {
this.$router.push({ this.$router.push({
name: "details-signalement", name: "details-signalement",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment