فهرست منبع

fix(Register/Login): typo with logic that closes the modal

Signed-off-by: Jonathan Graham <theflametrooper@gmail.com>
Jonathan Graham 3 سال پیش
والد
کامیت
b27cc810ac
2فایلهای تغییر یافته به همراه6 افزوده شده و 12 حذف شده
  1. 3 6
      frontend/src/components/modals/Login.vue
  2. 3 6
      frontend/src/components/modals/Register.vue

+ 3 - 6
frontend/src/components/modals/Login.vue

@@ -58,7 +58,7 @@
 								id="forgot-password"
 								href="#"
 								to="/reset_password"
-								@click.native="closeLoginModal()"
+								@click="closeLoginModal()"
 							>
 								Forgot password?
 							</router-link>
@@ -67,16 +67,13 @@
 						<br />
 						<p>
 							By logging in you agree to our
-							<router-link
-								to="/terms"
-								@click.native="closeLoginModal()"
-							>
+							<router-link to="/terms" @click="closeLoginModal()">
 								Terms of Service
 							</router-link>
 							&nbsp;and
 							<router-link
 								to="/privacy"
-								@click.native="closeLoginModal()"
+								@click="closeLoginModal()"
 							>
 								Privacy Policy </router-link
 							>.

+ 3 - 6
frontend/src/components/modals/Register.vue

@@ -101,16 +101,13 @@
 
 					<p>
 						By registering you agree to our
-						<router-link
-							to="/terms"
-							@click.native="closeRegisterModal()"
-						>
+						<router-link to="/terms" @click="closeRegisterModal()">
 							Terms of Service
 						</router-link>
 						&nbsp;and
 						<router-link
 							to="/privacy"
-							@click.native="closeRegisterModal()"
+							@click="closeRegisterModal()"
 						>
 							Privacy Policy </router-link
 						>.
@@ -291,7 +288,7 @@ export default {
 			}
 		},
 		closeRegisterModal() {
-			if (!this.isPage) this.closeModal("login");
+			if (!this.isPage) this.closeModal("register");
 		},
 		submitModal() {
 			if (