Bladeren bron

Going to Login page when Loging out

master
Lene' Scholtz 5 jaren geleden
bovenliggende
commit
30744ed4f5

+ 1
- 3
src/components/shared/navBar.vue Bestand weergeven

197
             </li>
197
             </li>
198
             <li class="nav-item dropdown" v-if="showLogout">
198
             <li class="nav-item dropdown" v-if="showLogout">
199
               <span>
199
               <span>
200
-                <a class="nav-link" @click="logout()">Logout</a>
200
+                <a class="nav-link" @click="logout(routerGoTo('/user/login'))">Logout</a>
201
               </span>
201
               </span>
202
               <!-- <span v-else></span> -->
202
               <!-- <span v-else></span> -->
203
             </li>
203
             </li>
251
     Logout() {
251
     Logout() {
252
       // eslint-disable-next-line no-unused-expressions
252
       // eslint-disable-next-line no-unused-expressions
253
       this.$store.state.authentication.methods.logout;
253
       this.$store.state.authentication.methods.logout;
254
-      // eslint-disable-next-line vue/no-side-effects-in-computed-properties
255
-      this.$router.push('/user/login');
256
     },
254
     },
257
   },
255
   },
258
 
256
 

+ 0
- 1
src/components/timeshare/sell/sellPage.vue Bestand weergeven

320
             <BankDetails :bankingDetails="sellItem.owner.bankingDetails" />
320
             <BankDetails :bankingDetails="sellItem.owner.bankingDetails" />
321
             <hr />
321
             <hr />
322
           </div>
322
           </div>
323
-          <hr />
324
           <br />
323
           <br />
325
           <div class="myWell">
324
           <div class="myWell">
326
             <h4>Share transfer information</h4>
325
             <h4>Share transfer information</h4>

+ 1
- 1
src/components/user/logOut.vue Bestand weergeven

11
     ...mapActions('authentication', ['logout']),
11
     ...mapActions('authentication', ['logout']),
12
     Logout() {
12
     Logout() {
13
       this.logout('logout').then(() => {
13
       this.logout('logout').then(() => {
14
-        this.$router.push('/users/login');
14
+        this.$router.push('/user/login');
15
       });
15
       });
16
     },
16
     },
17
   },
17
   },

+ 2
- 2
src/components/user/loginPage.vue Bestand weergeven

8
             <h4>Login</h4>
8
             <h4>Login</h4>
9
             <br />
9
             <br />
10
           </div>
10
           </div>
11
-          <!-- <alert :text="'Login successful'" :type="'SUCCESS'" />
11
+          <!--<alert :text="'Login successful'" :type="'SUCCESS'" />
12
           <alert :text="'User does not exist, please register'" :type="'ERROR'" />
12
           <alert :text="'User does not exist, please register'" :type="'ERROR'" />
13
           <alert :text="'Username is incorrect'" :type="'WARNING'" />
13
           <alert :text="'Username is incorrect'" :type="'WARNING'" />
14
           <alert :text="'Password is incorrect'" :type="'WARNING'" />
14
           <alert :text="'Password is incorrect'" :type="'WARNING'" />
81
         <div class="form">
81
         <div class="form">
82
           <h5>Trouble signing in?</h5>
82
           <h5>Trouble signing in?</h5>
83
           <div>
83
           <div>
84
-            <!-- <alert :text="'Username & password request email sent'" :type="'SUCCESS'" /> -->
84
+            <!--<alert :text="'Username & password request email sent'" :type="'SUCCESS'" />-->
85
             <div class="row">
85
             <div class="row">
86
               <div class="input-group-prepend">
86
               <div class="input-group-prepend">
87
                 <span class="input-group-text">
87
                 <span class="input-group-text">

Laden…
Annuleren
Opslaan