-
Notifications
You must be signed in to change notification settings - Fork 60
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
Adding vendor (publisher) to service info screen #485
Conversation
dist/less/order-service.less
Outdated
@@ -1,6 +1,5 @@ | |||
.order-service-details { | |||
.order-service-details-top { | |||
align-items: center; |
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 probably want to keep things centered until there are 3 or more lines.
@spadgett, I removed the addition of vendor to create from builder so this can merge now while we wait for the upstream builder annotation additions (vendor, docUrl, supportUrl). |
@@ -62,6 +62,8 @@ export class OrderServiceController implements angular.IController { | |||
this.ctrl.serviceName = this.ctrl.serviceClass.name; | |||
this.ctrl.description = this.ctrl.serviceClass.description; | |||
this.ctrl.longDescription = this.ctrl.serviceClass.longDescription; | |||
this.ctrl.docUrl = this.ctrl.serviceClass.resource.spec.externalMetadata.documentationUrl; |
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'm not sure externalMetadata
is required. This might be a runtime error. Let's change it to
this.ctrl.docUrl = _.get(this.ctrl.serviceClass, 'resource.spec.externalMetadata.documentationUrl');
this.ctrl.supportUrl = _.get(this.ctrl.serviceClass, 'resource.spec.externalMetadata. supportUrl');
Comment addressed. Thanks, @spadgett! |
Automatic merge from submit-queue. Adding vendor (publisher) to info screens, adds docUrl and supportUrl to info screens that lacked it Fixes openshift/origin-web-catalog#479 And fixes #2242 Requires openshift/origin-web-catalog#485 <img width="915" alt="screen shot 2017-10-10 at 2 32 50 pm" src="https://user-images.githubusercontent.com/895728/31404030-dde2fe2c-adc8-11e7-9a73-68bd4e1ed138.PNG"> <img width="925" alt="screen shot 2017-10-10 at 2 32 56 pm" src="https://user-images.githubusercontent.com/895728/31404031-ddf83dd2-adc8-11e7-8ec8-13aca55d70f3.PNG"> <img width="909" alt="screen shot 2017-10-10 at 2 33 06 pm" src="https://user-images.githubusercontent.com/895728/31404032-de091102-adc8-11e7-9253-9211cc3064f1.PNG"> <img width="926" alt="screen shot 2017-10-10 at 2 33 12 pm" src="https://user-images.githubusercontent.com/895728/31404035-de237bf0-adc8-11e7-9eb8-060ffc45435f.PNG">
Supports #479
Adjusts styles:
vs.