Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
An issue has been raised about the disclaimer messages in the
desktop_alt
application. It's now showing an empty message. It seems to be a combinaison of multiple things. Here goes.First issue
First, when the update to Angular 1.6 was made, changes were made in several directives to change them as components without them being tested. The
gmf-disclaimer
was one of them. Look at the first commit of this PR. The component was created before its controller. From this point moment on, the component stop from working under the 'development' environment. When compiled, it worked because I suppose the compiler was smart enough to understand to define the controller before and then use it, I don't know...Introduced in #2142
Fixed in the "first step" commit.
Second issue
This PR doesn't have any fix for this yet, as I don't understand how it works...
The second issue was caused when moving the modal from a directive to a component, see:
#3154
Prior this, the modal was shown fine.
When not using the
external
option of the disclaimer, it's working fine (we have disclaimer messages correctly shown at the bottom left of the map). When using it (that's what the desktop_alt app does), it's showing the empty messages.From what I understand, we define a
ngeo-modal
that uses a custom defined model that's shared between the modal and disclaimer... and the visibility as well. I don't understand how that's supposed to work now with components (nor how that was working before), as I'm not used to this kind of practice.