static: fix hash not changing when invalid route is chosen
This commit is contained in:
parent
eff3208ff7
commit
2a50e36027
2
passbook/static/static/dist/main.js
vendored
2
passbook/static/static/dist/main.js
vendored
File diff suppressed because one or more lines are too long
2
passbook/static/static/dist/main.js.map
vendored
2
passbook/static/static/dist/main.js.map
vendored
File diff suppressed because one or more lines are too long
|
@ -14,6 +14,25 @@ html {
|
|||
--pf-c-nav__link--PaddingLeft: 0.5rem;
|
||||
}
|
||||
|
||||
.pb-brand {
|
||||
font-family: "DIN 1451 Std";
|
||||
font-size: 4em;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
margin-right: 0.5em;
|
||||
color: var(--pf-global--Color--light-200);
|
||||
}
|
||||
|
||||
.pb-brand > a:hover {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.pb-brand > img {
|
||||
max-height: 68px;
|
||||
margin-right: 0.5em;
|
||||
}
|
||||
|
||||
.pf-c-background-image::before {
|
||||
background-image: url("./flow_background.jpg");
|
||||
background-position: center;
|
||||
|
|
|
@ -32,7 +32,9 @@ export class ActionButton extends LitElement {
|
|||
css`
|
||||
button {
|
||||
/* Have to use !important here, as buttons with pf-m-progress have transition already */
|
||||
transition: all var(--pf-c-button--m-progress--TransitionDuration) ease 0s !important;
|
||||
transition: all
|
||||
var(--pf-c-button--m-progress--TransitionDuration) ease
|
||||
0s !important;
|
||||
}
|
||||
`,
|
||||
];
|
||||
|
|
|
@ -77,6 +77,7 @@ export class RouterOutlet extends LitElement {
|
|||
console.log(
|
||||
`passbook/router: route "${activeUrl}" not defined, defaulting to shell`
|
||||
);
|
||||
window.location.hash = `#${activeUrl}`;
|
||||
selectedRoute = {
|
||||
url: RegExp(""),
|
||||
element: html`<pb-site-shell url=${activeUrl}
|
||||
|
|
Reference in a new issue