4 .col-sm-12.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2
5 p(:class="{warn:!!this.errmsg}")
6 | {{ errmsg || st.tr["Logout successful!"] }}
10 import { store } from "@/store";
11 import { ajax } from "@/utils/ajax";
22 // NOTE: this local cleaning would logically happen when we're sure
23 // that token is erased. But in the case a user clear the cookies,
24 // it would lead to situations where he cannot ("locally") log out.
25 // At worst, if token deletion fails the user can erase cookie manually.
27 this.st.user.name = "";
28 this.st.user.email = "";
29 this.st.user.notify = false;
30 localStorage.removeItem("myid");
31 localStorage.removeItem("myname");
32 ajax("/logout", "GET"); //TODO: listen for errors?
37 <style lang="sass" scoped>
41 background-color: lightgrey