Browse Source

Fixed issue with close button on login page not working.

KrisVos130 8 years ago
parent
commit
053a6aa2d8
1 changed files with 5 additions and 1 deletions
  1. 5 1
      frontend/components/Modals/Login.vue

+ 5 - 1
frontend/components/Modals/Login.vue

@@ -36,7 +36,11 @@
 	export default {
 		methods: {
 			toggleModal: function () {
-				this.$dispatch('toggleModal', 'login');
+				if (this.$router._currentRoute.path === '/login') {
+					location.href = '/';
+				} else {
+					this.$dispatch('toggleModal', 'login');
+				}
 			},
 			submitModal: function () {
 				this.$dispatch('login');