Conversation
aaf175c to
39401fe
Compare
|
@ocket8888 - do you want to move the |
|
I suppose I can. Working on something else atm, though, so it might be a bit. |
39401fe to
bef4eb3
Compare
|
Done |
mitchell852
left a comment
There was a problem hiding this comment.
A few things:
- offline reason label looks screwed up:
- how about putting some words on these buttons rather than
+and-so you don't have to hover over the button to figure out what it's for:
- how about moving the interfaces section to the bottom of the form rather than putting it between profile and phys location?
...ic_portal/app/src/common/modules/table/cacheGroupServers/TableCacheGroupServersController.js
Outdated
Show resolved
Hide resolved
mitchell852
left a comment
There was a problem hiding this comment.
getting errors on the server create page - https://tp.domain.com/#!/servers/new
first error:
TypeError: Cannot read property 'cdnId' of undefined
at init (FormServerController.js:205)
...ic_portal/app/src/common/modules/table/cacheGroupServers/TableCacheGroupServersController.js
Outdated
Show resolved
Hide resolved
traffic_portal/app/src/common/modules/table/cdnServers/TableCDNServersController.js
Outdated
Show resolved
Hide resolved
...ortal/app/src/common/modules/table/physLocationServers/TablePhysLocationServersController.js
Outdated
Show resolved
Hide resolved
traffic_portal/app/src/common/modules/table/profileServers/TableProfileServersController.js
Outdated
Show resolved
Hide resolved
traffic_portal/app/src/common/modules/table/statusServers/TableStatusServersController.js
Outdated
Show resolved
Hide resolved
traffic_portal/app/src/common/modules/table/typeServers/TableTypeServersController.js
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
What should I do about that? Add a placeholder or a label? I thought using the name as the full legend was pretty neat, looked a little weird with "Name: " in front of everything.
There was a problem hiding this comment.
placeholder would be fine. i just think it will confuse people. maybe placeholder: name (i.e. eth0, bond0, etc)
There was a problem hiding this comment.
placeholders are only supposed to be example values that would be valid in the input if you typed them in. So I added a placeholder, lemme know if you think that works.
1f321a4 to
d285f33
Compare
|
I'm not seeing any errors on the server create page. Tried Chrome and Firefox. |
0dc19f9 to
c099126
Compare
|
I like the way you've nested the interfaces on the form, but i'm still have a hard time visually lining up the buttons with the proper nested box and the interface buttons are interfering with the main buttons of the form as well (update/delete). what about moving a button or a link into the legend like such: |
|
also, i'm getting this error when trying to create a server:
|
c099126 to
f242110
Compare
| <legend>Interfaces<button class="btn btn-success right-button" type="button" title="add a new interface" ng-click="addInterface()">Add Interface</button></legend> | ||
| <fieldset ng-repeat="inf in server.interfaces"> | ||
| <legend> | ||
| <input my-directive type="text" ng-model="inf.name" required aria-label="Interface name" id="{{inf.name}}-name" name="{{inf.name}}-name" ng-class="{'has-error': hasError(serverForm[inf.name+'-name'])}" placeholder="eth0"/> |
There was a problem hiding this comment.
this text input acts weird for me. does it for you? i can only put my cursor at the start of the text.
There was a problem hiding this comment.
idk what "my-directive" is or why it's in there. I'll get rid of it.
as far as "acting weird," no, I don't think I have noticed that, but I'll look at it.
There was a problem hiding this comment.
directive is gone, can't reproduce not being allowed to put your cursor wherever you want
There was a problem hiding this comment.
maybe the placeholder was a bad idea because now it looks like text and the update or create button is disabled unless i change it....but if i want it to be eth0 it looks like it's already filled in. maybe a better placeholder would be interface-name?
fixed |
|
If you put your buttons in the legend, i think the icon buttons (like you had originally) work pretty well instead of the words. looks cleaner for example: |
|
I created a PR for you if you want to show the success/error message in a more friendly way |
|
Buttons are back to +/- |
|
@ocket8888 - doesn't every cache require at least one service address? I can create one w/o a service address. |
… of form on success/error
b44054d to
801417e
Compare
@ocket8888 did you look at this one? actually, just apply this @ocket8888 - mitchell852@e0f33ad - i tried to PR your PR but it got all screwed up. |
ok, this is fixed now with #4828 |
mitchell852
left a comment
There was a problem hiding this comment.
UI tests pass. did a bunch of manual testing. everything seems to work as expected. nice work!
|
retest this please |











What does this PR (Pull Request) do?
Updates Traffic Portal tables and forms to account for servers having multiple interfaces, including:
/serverssuch asWhich Traffic Control components are affected by this PR?
What is the best way to verify this PR?
If this is a bug fix, what versions of Traffic Control are affected?
The following criteria are ALL met by this PR