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

Fix save button moving for ports without PoE support #2782

Merged
merged 2 commits into from
Dec 14, 2023

Conversation

stveit
Copy link
Contributor

@stveit stveit commented Dec 5, 2023

Fixes problem that occurs if some ports support PoE and some dont. The lines that do not suppot PoE will not have a dropdown, so the space will not be occupied by anything. This causes the save button to move to the left, as seen below.

image

This PR makes it so the space is always occupied if the PoE column is active.

Also remove random vlan tag that shouldnt be there

@stveit stveit self-assigned this Dec 5, 2023
Copy link

codecov bot commented Dec 5, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (2b52575) 57.03% compared to head (a9aa56c) 57.03%.

Additional details and impacted files
@@           Coverage Diff           @@
##            5.8.x    #2782   +/-   ##
=======================================
  Coverage   57.03%   57.03%           
=======================================
  Files         567      567           
  Lines       41280    41280           
=======================================
  Hits        23544    23544           
  Misses      17736    17736           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

github-actions bot commented Dec 5, 2023

Test results

     12 files       12 suites   11m 38s ⏱️
3 303 tests 3 303 ✔️ 0 💤 0
9 384 runs  9 384 ✔️ 0 💤 0

Results for commit a9aa56c.

♻️ This comment has been updated with latest results.

Copy link
Member

@lunkwill42 lunkwill42 left a comment

Choose a reason for hiding this comment

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

Yup, looks good, but should be based on the 5.8.x branch

If poe column is active, which means some interfaces
will have a poe state dropdown option, the lines that do not have
a poe state dropdown still needs to occupy the space, else the
save button will shift to the left and not be lined up with all the
other save buttons.
This was probably left over from basing the Poe dropdown
on the vlan dropdown
@lunkwill42 lunkwill42 force-pushed the portadmin/fix-save-button-shift-poe branch from d8fbf85 to a9aa56c Compare December 14, 2023 07:50
@lunkwill42 lunkwill42 changed the base branch from master to 5.8.x December 14, 2023 07:50
Copy link
Member

@lunkwill42 lunkwill42 left a comment

Choose a reason for hiding this comment

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

rebased on 5.8.x myself, since you're on vacation :)

Copy link

sonarcloud bot commented Dec 14, 2023

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@lunkwill42 lunkwill42 merged commit 7d6a7a9 into Uninett:5.8.x Dec 14, 2023
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants