Skip to content

Commit

Permalink
feat(registrar): option to hide footer
Browse files Browse the repository at this point in the history
  • Loading branch information
kofzera committed Nov 4, 2024
1 parent fdde281 commit 0c93ca0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ public interface MyView extends View {

void hideNavbar();

void hideFooter();

void setActiveMenuItem(String anchor);

}
Expand All @@ -87,6 +89,10 @@ protected void onBind() {
History.newItem(PerunRegistrarPlaceTokens.getVerify(), false);
}

if (PerunConfiguration.isFooterDisabled()) {
getView().hideFooter();
}

loadVoAttributes(new Events<List<Attribute>>() {

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,14 @@ public void hideNavbar() {
collapse.hide();
}

@Override
public void hideFooter() {
Element footer = DOM.getElementById("perun-footer");
if (footer != null) {
footer.getStyle().setProperty("display", "none");
}
}

@Inject
PerunRegistrarView(final PerunRegistrarViewUiBinder binder) {

Expand Down

0 comments on commit 0c93ca0

Please sign in to comment.