Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implemention of new WebComponent header #663

Merged
merged 3 commits into from
Nov 27, 2023
Merged

Implemention of new WebComponent header #663

merged 3 commits into from
Nov 27, 2023

Conversation

f-necas
Copy link
Contributor

@f-necas f-necas commented Nov 11, 2023

georchestra/georchestra#4065

Implements the new georchestra/header in geoserver.
Main PR : georchestra/georchestra#4065

Comment on lines 31 to 32
const georHeader = document.createElement("geor-header");
const georHeaderScript = document.createElement("script");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just wondering if we couldn't put these elements in the index.html and then just set the script.src and attributes here,... also to prevent the check for multiple header creation above. But I guess this does not work?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I modify it :)

const georHeaderScript = document.createElement("script");

georHeader.setAttribute("active-app", page);
georHeader.setAttribute("legacy-header", false);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this line necessary, to set the legacy-header equals false before the georHeader.setAttribute("legacy-header", legacy); below?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It isn't, just forgot to remove it.

@f-necas f-necas requested a review from tkohr November 14, 2023 15:07
Copy link
Contributor

@tkohr tkohr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the integration and the latest adaptions @f-necas ! I wasn't able to test it on my side, but the changes LGTM.

@f-necas f-necas changed the title feat: implement new header Implemention of new WebComponent header Nov 22, 2023
@tkohr
Copy link
Contributor

tkohr commented Nov 27, 2023

Also tested last week and it worked :-)

@f-necas f-necas merged commit fd8f5e5 into master Nov 27, 2023
2 checks passed
@f-necas f-necas deleted the geor-header branch November 27, 2023 08:45
landryb added a commit to landryb/datadir that referenced this pull request Dec 6, 2023
fvanderbiest added a commit to georchestra/datadir that referenced this pull request Dec 10, 2023
f-necas added a commit that referenced this pull request May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants