move method

This commit is contained in:
Niels Lyngsø
2023-03-23 11:24:11 +01:00
parent 605c6c4799
commit 9ed16e6eae

View File

@@ -32,12 +32,6 @@ export class UmbRouteContext {
});
}
#removeModalPath(info: IRoutingInfo) {
if (window.location.href.includes(info.match.fragments.consumed)) {
window.history.pushState({}, '', window.location.href.split(info.match.fragments.consumed)[0]);
}
}
public registerModal(registration: UmbModalRouteRegistration) {
this.#modalRegistrations.push(registration);
this.#generateNewUrlBuilder(registration);
@@ -77,6 +71,12 @@ export class UmbRouteContext {
};
}
#removeModalPath(info: IRoutingInfo) {
if (window.location.href.includes(info.match.fragments.consumed)) {
window.history.pushState({}, '', window.location.href.split(info.match.fragments.consumed)[0]);
}
}
#generateContextRoutes() {
this.#contextRoutes = this.#modalRegistrations.map((modalRegistration) => {
return this.#generateRoute(modalRegistration);