Experimental update: preview corr move + allow deletion of any game
[vchess.git] / client / src / views / Logout.vue
index 62f057c..0db08a9 100644 (file)
@@ -2,7 +2,8 @@
 main
   .row
     .col-sm-12.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2
-      p {{ st.tr["Logout successful!"] }}
+      div(v-if="logoutOk")
+        p {{ st.tr["Logout successful!"] }}
 </template>
 
 <script>
@@ -12,7 +13,8 @@ export default {
   name: "my-logout",
   data: function() {
     return {
-      st: store.state
+      st: store.state,
+      logoutOk: false
     };
   },
   created: function() {
@@ -20,6 +22,7 @@ export default {
       "/logout",
       "GET",
       () => {
+        this.logoutOk = true;
         this.st.user.id = 0;
         this.st.user.name = "";
         this.st.user.email = "";