-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
network: distinguish create and edit dialogs #19209
Conversation
beefeb8
to
5583db7
Compare
Thanks! I think changing the titles would make sense as well. E.g. "Add VLAN" and "Edit VLAN" or "Edit VLAN settings". Please no "Add ... settings", that sounds weird. |
5583db7
to
dc4a837
Compare
Went with "Add VLAN" and "Edit VLAN settings". Oops! Too many tests failed to ignore... only TestFirewall.testNetworkingPage seem to be repeating. |
@@ -151,7 +151,8 @@ export const TeamDialog = ({ connection, dev, settings }) => { | |||
<NetworkModal dialogError={dialogError} | |||
idPrefix={idPrefix} | |||
onSubmit={onSubmit} | |||
title={_("Team settings")} | |||
title={!connection ? _("Add team") : _("Edit team settings")} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This added line is not executed by any test. Details
@@ -88,7 +88,8 @@ export const VlanDialog = ({ connection, dev, settings }) => { | |||
<NetworkModal dialogError={dialogError} | |||
idPrefix={idPrefix} | |||
onSubmit={onSubmit} | |||
title={_("VLAN settings")} | |||
title={!connection ? _("Add VLAN") : _("Edit VLAN settings")} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This added line is not executed by any test. Details
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We now have the expected pixel diffs. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
dc4a837
to
89f8342
Compare
89f8342
to
d133e30
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I pushed the updated pixels. Only re-running a few tests now, as they already went green before, and the 3x retry is quite taxing.
Based on @garrett's suggestions here.
And here.
This needed to be a separate PR as the code/issue is shared between the other interface Dialogs.
For the time being, create dialogs have a "Add" button and edit dialogs have a "Save" button.Create Dialog:
Edit Dialog:
I haven't changed the titles yet; changing "Bond settings" to "Create bond settings" seems redundant and should be obvious from the context, but happy to get any feedback on that.