Conversation
Test results 12 files 12 suites 12m 37s ⏱️ Results for commit 3cd730f. ♻️ This comment has been updated with latest results. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #3529 +/- ##
=======================================
Coverage 62.02% 62.02%
=======================================
Files 611 611
Lines 44850 44850
Branches 43 43
=======================================
Hits 27818 27818
Misses 17022 17022
Partials 10 10 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Very well documented PR!
I agree that we should rename it back to [data-alert] when foundation is removed, please make a follow up issue
And I realized that your bugfix is actually just masking an underlying bug that happens when an invalid IP address is entered for the exact IP search. That bug is happening in the backend, I am working on a fix, afterwards we can check if that bugfix in the frontend is still necessary
I have added #3534. Please have a look at how this fix would influence this PR if we decide to merge that. |
The "fix" in this PR is to remove the |
johannaengland
left a comment
There was a problem hiding this comment.
Happy with this now! Please make a follow up issue for after #3534 is merged to show that error message
76cbd7e to
3cd730f
Compare
|



Scope and purpose
Resolves #3481.
This PR replaces the functionality in the
data-alertplugin in Foundation.I looked at the Foundation 5 foundation.alert.js source code, and all the plugin does it animate the removal of the alert when an element with
.closeis clicked. As such, I added a newalert.jsplugin which does exactly this.To explicitly remove the effects of foundation's
[data-alert], I opted to use a new attribute:[data-nav-alert]. Once we remove all foundation js, we can consider renaming the plugin[data-alert]again.Considerations
The
[data-alert]plugin was used on elements that don't have close buttons, such as "Metric list" or "Port sensors" (see image) on this port on an ip deviceI'm not sure if this was intentional or if they are supposed to have close buttons, so I just left it as-is for the time being.
This pull request
[data-nav-alert]plugin to replace Foundation 5 Alert JS[data-alert]with[data-nav-alert]_override.scss, and removed underline from close icons.Reproduce the Networkexplorer bug
Contributor Checklist
Every pull request should have this checklist filled out, no matter how small it is.
More information about contributing to NAV can be found in the
Hacker's guide to NAV.
<major>.<minor>.x). For a new feature or other additions, it should be based onmaster.