Kobus 5 lat temu
rodzic
commit
e7080d78d1
1 zmienionych plików z 15 dodań i 4 usunięć
  1. 15
    4
      src/components/user/loginPage.vue

+ 15
- 4
src/components/user/loginPage.vue Wyświetl plik

71
           </div>
71
           </div>
72
           <button @click="Login()" class="btn btn-b-n" type="submit">Sign In</button>
72
           <button @click="Login()" class="btn btn-b-n" type="submit">Sign In</button>
73
           <hr />
73
           <hr />
74
-          <h5>Trouble signing in?</h5>
75
-          <div>
74
+          <div
75
+            @click="ToggleTrouble()"
76
+            class="btn cursor: pointer;"
77
+            style="margin:2px; color: #60CBEB; font-size:110%;"
78
+          >Trouble signing in?</div>
79
+          <br />
80
+          <div v-if="troubleToggle">
76
             <!-- <alert :text="'Username & password request email sent'" :type="'SUCCESS'" /> -->
81
             <!-- <alert :text="'Username & password request email sent'" :type="'SUCCESS'" /> -->
77
             <div class="row">
82
             <div class="row">
78
               <div class="input-group-prepend">
83
               <div class="input-group-prepend">
82
                 <input class="form-control" placeholder="Your Email" type="text" name="email" value />
87
                 <input class="form-control" placeholder="Your Email" type="text" name="email" value />
83
               </div>
88
               </div>
84
             </div>
89
             </div>
90
+            <br />
91
+            <button @click="SendMail()" class="btn btn-b-n" type="submit">Submit</button>
85
           </div>
92
           </div>
86
-          <div class="form-group row"></div>
87
-          <button @click="SendMail()" class="btn btn-b-n" type="submit">Submit</button>
88
         </div>
93
         </div>
89
       </form>
94
       </form>
90
     </div>
95
     </div>
110
       text: '',
115
       text: '',
111
       showPassword: false,
116
       showPassword: false,
112
       email: '',
117
       email: '',
118
+      troubleToggle: false,
113
     };
119
     };
114
   },
120
   },
115
   computed: {
121
   computed: {
117
   },
123
   },
118
   methods: {
124
   methods: {
119
     ...mapActions('authentication', ['login', 'init']),
125
     ...mapActions('authentication', ['login', 'init']),
126
+    ToggleTrouble() {
127
+      if (this.troubleToggle) {
128
+        this.troubleToggle = false;
129
+      } else this.troubleToggle = true;
130
+    },
120
     Login() {
131
     Login() {
121
       this.login().then(() => {
132
       this.login().then(() => {
122
         if (this.$store.state.authentication.status === 'error') {
133
         if (this.$store.state.authentication.status === 'error') {

Ładowanie…
Anuluj
Zapisz