forked from potsda.mn/mobilizon
Merge branch 'various/cleanup' into 'master'
Remove logout from profile See merge request framasoft/mobilizon!118
This commit is contained in:
commit
f89f9e2cc2
|
@ -76,15 +76,6 @@
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="field is-grouped">
|
<div class="field is-grouped">
|
||||||
<p class="control">
|
|
||||||
<a
|
|
||||||
class="button"
|
|
||||||
@click="logoutUser()"
|
|
||||||
v-if="loggedPerson && loggedPerson.id === person.id"
|
|
||||||
>
|
|
||||||
<translate>User logout</translate>
|
|
||||||
</a>
|
|
||||||
</p>
|
|
||||||
<p class="control">
|
<p class="control">
|
||||||
<a
|
<a
|
||||||
class="button"
|
class="button"
|
||||||
|
@ -138,11 +129,6 @@ export default class Profile extends Vue {
|
||||||
// this.fetchData()
|
// this.fetchData()
|
||||||
}
|
}
|
||||||
|
|
||||||
logoutUser() {
|
|
||||||
// TODO : implement logout
|
|
||||||
this.$router.push({ name: RouteName.HOME });
|
|
||||||
}
|
|
||||||
|
|
||||||
nl2br(text) {
|
nl2br(text) {
|
||||||
return text.replace(/(?:\r\n|\r|\n)/g, '<br>');
|
return text.replace(/(?:\r\n|\r|\n)/g, '<br>');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue