Fix typo 👨🔧
This commit is contained in:
parent
74b13d0e15
commit
86613c881e
|
|
@ -4,7 +4,7 @@ import VueVimeoPlayer from 'vue-vimeo-player';
|
||||||
import apolloClientFactory from './graphql/client';
|
import apolloClientFactory from './graphql/client';
|
||||||
import VueApollo from 'vue-apollo';
|
import VueApollo from 'vue-apollo';
|
||||||
import App from './App';
|
import App from './App';
|
||||||
import {router, postLoginRederictUrlKey} from './router';
|
import {router, postLoginRedirectUrlKey} from './router';
|
||||||
import store from '@/store/index';
|
import store from '@/store/index';
|
||||||
import VueScrollTo from 'vue-scrollto';
|
import VueScrollTo from 'vue-scrollto';
|
||||||
import {Validator, install as VeeValidate} from 'vee-validate/dist/vee-validate.minimal.esm.js';
|
import {Validator, install as VeeValidate} from 'vee-validate/dist/vee-validate.minimal.esm.js';
|
||||||
|
|
@ -162,7 +162,7 @@ router.beforeEach(async (to, from, next) => {
|
||||||
const redirectUrl = `/hello/`;
|
const redirectUrl = `/hello/`;
|
||||||
|
|
||||||
if (window.localStorage) {
|
if (window.localStorage) {
|
||||||
localStorage.setItem(postLoginRederictUrlKey, postLoginRedirectionUrl);
|
localStorage.setItem(postLoginRedirectUrlKey, postLoginRedirectionUrl);
|
||||||
}
|
}
|
||||||
|
|
||||||
next(redirectUrl);
|
next(redirectUrl);
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,7 @@
|
||||||
<p>Was ist ein hep Konto und wie kann ich mich dafür registrieren?</p>
|
<p>Was ist ein hep Konto und wie kann ich mich dafür registrieren?</p>
|
||||||
<a
|
<a
|
||||||
class="hep-link"
|
class="hep-link"
|
||||||
href="/api/oauth/login/"
|
href="https://myskillbox.ch/anleitung"
|
||||||
data-cy="oauth-login">Anleitung anschauen</a>
|
data-cy="oauth-login">Anleitung anschauen</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="links">
|
<div class="links">
|
||||||
|
|
@ -103,6 +103,7 @@
|
||||||
|
|
||||||
.about {
|
.about {
|
||||||
display: none;
|
display: none;
|
||||||
|
margin-bottom: $hello-block-margin;
|
||||||
|
|
||||||
@include desktop {
|
@include desktop {
|
||||||
display: block;
|
display: block;
|
||||||
|
|
@ -144,9 +145,8 @@
|
||||||
|
|
||||||
.login-actions {
|
.login-actions {
|
||||||
@include widget-shadow;
|
@include widget-shadow;
|
||||||
|
|
||||||
margin-top: $hello-block-margin;
|
|
||||||
padding: $medium-spacing;
|
padding: $medium-spacing;
|
||||||
|
margin-bottom: $hello-block-margin;
|
||||||
|
|
||||||
&__title {
|
&__title {
|
||||||
font-size: 2.125rem; // 34px
|
font-size: 2.125rem; // 34px
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ import store from '@/store/index';
|
||||||
import {LAYOUT_SIMPLE} from '@/router/core.constants';
|
import {LAYOUT_SIMPLE} from '@/router/core.constants';
|
||||||
import {EMAIL_NOT_VERIFIED_STATE, NO_VALID_LICENSE_STATE, SUCCESS_STATE} from "./oauth.names";
|
import {EMAIL_NOT_VERIFIED_STATE, NO_VALID_LICENSE_STATE, SUCCESS_STATE} from "./oauth.names";
|
||||||
|
|
||||||
const postLoginRederictUrlKey = 'postLoginRedirectionUrl';
|
const postLoginRedirectUrlKey = 'postLoginRedirectionUrl';
|
||||||
|
|
||||||
const routes = [
|
const routes = [
|
||||||
{
|
{
|
||||||
|
|
@ -77,9 +77,9 @@ const routes = [
|
||||||
case NO_VALID_LICENSE_STATE:
|
case NO_VALID_LICENSE_STATE:
|
||||||
return '/license-activation';
|
return '/license-activation';
|
||||||
case SUCCESS_STATE:
|
case SUCCESS_STATE:
|
||||||
if (window.localStorage && localStorage.getItem(postLoginRederictUrlKey)) {
|
if (window.localStorage && localStorage.getItem(postLoginRedirectUrlKey)) {
|
||||||
const redirectUrl = localStorage.getItem(postLoginRederictUrlKey);
|
const redirectUrl = localStorage.getItem(postLoginRedirectUrlKey);
|
||||||
localStorage.removeItem(postLoginRederictUrlKey);
|
localStorage.removeItem(postLoginRedirectUrlKey);
|
||||||
return redirectUrl;
|
return redirectUrl;
|
||||||
}
|
}
|
||||||
return '/';
|
return '/';
|
||||||
|
|
@ -117,4 +117,4 @@ router.afterEach((to, from) => {
|
||||||
store.dispatch('showMobileNavigation', false);
|
store.dispatch('showMobileNavigation', false);
|
||||||
});
|
});
|
||||||
|
|
||||||
export {router, postLoginRederictUrlKey};
|
export {router, postLoginRedirectUrlKey};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue