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

Img preview #1118

Merged
merged 8 commits into from
Nov 3, 2022
Merged

Img preview #1118

merged 8 commits into from
Nov 3, 2022

Conversation

pelord
Copy link
Member

@pelord pelord commented Oct 31, 2022

Please check if the PR fulfills these requirements

What is the current behavior? (You can also link to an open issue here)
Missing image cause error to be raised (toast).

What is the new behavior?
Create a new directive to catch image error and show and alternate image (or not)
Directive name: igoImageError
input1 (optionnal) = errorImageUrl (default = '/assets/igo2/common/images/na.png';)
input2 (optionnal) = hideError (default = false) If true, no alternate image is shown. The image is hidden by css

check the entity-table demo to validate the directive.
image

Does this PR introduce a breaking change? (check one with "x")

  • Yes
  • No

If this PR contains a breaking change, please describe the impact and migration path for existing applications:

Other information:

@PhilippeLafreniere18 PhilippeLafreniere18 merged commit acf6033 into next Nov 3, 2022
@pelord pelord deleted the imgPreview branch November 3, 2022 18:23
cbourget pushed a commit that referenced this pull request Mar 21, 2023
* fix(secureImage): handle missing image to show unavailable image and avoid message service to raise

* lint + cleanup

* fix(secureImage): handle missing image to show unavailable image and avoid message service to raise

* lint

* chore(build): remove reverse storedqueries from default build (prod and dev)

* chore(build): remove reverse storedqueries from default build (prod and dev)

* fix(demo): fix layer error

* refactor(layer-legend): legend was flashing during loading

Co-authored-by: Pierre-Étienne Lord <[email protected]>
Co-authored-by: Philippe Lafreniere <[email protected]>
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