File tree Expand file tree Collapse file tree 2 files changed +16
-5
lines changed Expand file tree Collapse file tree 2 files changed +16
-5
lines changed Original file line number Diff line number Diff line change 66        >Dashboard</router-link 
77      >
88      <template  v-if =" ! user " >
9-         <router-link  :to =" { name: 'authenticate' }"  >
10-           <button   type = " button "  >Login</button >
9+         <router-link  :to =" { name: 'authenticate' }"   class = " navButton "  >
10+           <span >Login</span >
1111        </router-link >
1212      </template >
1313
14-       <template  v-if  = " user " >
14+       <template  v-else  >
1515        <span >Hello, {{ user.name }}.</span >
1616        <button  type =" button"   @click =" logout"  >Log out</button >
1717      </template >
@@ -66,6 +66,10 @@ export default {
6666#nav  span  {
6767  margin  : auto  1em   auto  0em  ; 
6868} 
69+ #nav  a  span  {
70+   vertical-align  : middle ; 
71+   margin  : auto  !important ; 
72+ } 
6973a :visited  {
7074  color  : #2c3e50 ; 
7175} 
@@ -104,6 +108,14 @@ input {
104108  color  : #2c3e50 ; 
105109} 
106110.navButton  {
107-   margin-left  : auto ; 
111+   background  : white ; 
112+   color  : #2c3e50  !important ; 
113+   text-decoration  : none ; 
114+   font-size  : 1em  ; 
115+   font-weight  : 500  !important ; 
116+   width  : 5em  ; 
117+   height  : 1.8em  ; 
118+   border-radius  : 5%  ; 
119+   margin  : 0.5em   0.5em   0.5em   auto  !important ; 
108120} 
109121 </style >
Original file line number Diff line number Diff line change @@ -22,7 +22,6 @@ new Vue({
2222      error  =>  { 
2323        console . log ( error . response ) 
2424        if  ( error . response . status  ===  401 )  { 
25-           // Do something with response error 
2625          this . $router . push ( '/' ) 
2726          //This messes with displaying login error 
2827          this . $store . dispatch ( 'logout' ) 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments