Skip to content

Commit

Permalink
deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
vegegoku committed Dec 11, 2023
1 parent c10ca19 commit 72c2b2c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ public void onModuleLoad() {
if (ClientApp.make().getHistory().currentToken().isEmpty()) {
ClientApp.make().getHistory().fireState(StateToken.of("home"));
}else {
ClientApp.make().getHistory().fireState(StateToken.of(ClientApp.make().getHistory().currentToken()));
DominoEvents.fire(ContentState.class, new ContentState(true));
}
}));
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package org.dominokit.pages.client.presenters;

import elemental2.dom.DomGlobal;
import org.dominokit.domino.api.client.ClientApp;
import org.dominokit.domino.api.client.extension.DominoEvents;
import org.dominokit.domino.history.HistoryToken;
Expand Down Expand Up @@ -28,6 +29,7 @@ public boolean canLoad(HistoryToken token) {

@Override
public void loadContent(HistoryToken token, PagesView view) {
DomGlobal.console.info("MainNavigationContentLoader : Loading direct url --- > ");
String page = token.paths().get(token.paths().size() - 1);
getContent(token.path(), page, false , content -> {
view.replaceContent(content, "dui-content-container");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ public boolean canLoad(HistoryToken token) {

@Override
public void loadContent(HistoryToken token, PagesView view) {
DomGlobal.console.info("SolutionContentLoader : Loading content --- > ");
String page = token.paths().get(token.paths().size() - 1);
boolean docsContent = token.paths().contains("docs") && nonNull(DomGlobal.document.getElementById("dui-site-left-menu"));
getContent(token.path(), page, docsContent, content -> {
Expand Down

0 comments on commit 72c2b2c

Please sign in to comment.