Fix remaining domainname -> hostname rebranding
This commit is contained in:
parent
6aa0645fa7
commit
0a62588be7
4 changed files with 8 additions and 5 deletions
|
@ -383,7 +383,7 @@ export default {
|
|||
:status-reason="applications.knative.statusReason"
|
||||
:request-status="applications.knative.requestStatus"
|
||||
:request-reason="applications.knative.requestReason"
|
||||
:install-application-request-params="{ hostname: applications.knative.domainname}"
|
||||
:install-application-request-params="{ hostname: applications.knative.hostname}"
|
||||
:disabled="!helmInstalled"
|
||||
class="hide-bottom-border rounded-bottom"
|
||||
title-link="https://github.com/knative/docs"
|
||||
|
@ -405,7 +405,7 @@ export default {
|
|||
</label>
|
||||
<input
|
||||
id="knative-domainname"
|
||||
v-model="applications.knative.domainname"
|
||||
v-model="applications.knative.hostname"
|
||||
type="text"
|
||||
class="form-control js-domainname"
|
||||
readonly
|
||||
|
@ -419,7 +419,7 @@ export default {
|
|||
</label>
|
||||
<input
|
||||
id="knative-domainname"
|
||||
v-model="applications.knative.domainname"
|
||||
v-model="applications.knative.hostname"
|
||||
type="text"
|
||||
class="form-control js-domainname"
|
||||
/>
|
||||
|
|
|
@ -16,3 +16,4 @@ export const REQUEST_SUCCESS = 'request-success';
|
|||
export const REQUEST_FAILURE = 'request-failure';
|
||||
export const INGRESS = 'ingress';
|
||||
export const JUPYTER = 'jupyter';
|
||||
export const KNATIVE = 'knative';
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { s__ } from '../../locale';
|
||||
import { INGRESS, JUPYTER } from '../constants';
|
||||
import { INGRESS, JUPYTER, KNATIVE } from '../constants';
|
||||
|
||||
export default class ClusterStore {
|
||||
constructor() {
|
||||
|
@ -105,6 +105,8 @@ export default class ClusterStore {
|
|||
(this.state.applications.ingress.externalIp
|
||||
? `jupyter.${this.state.applications.ingress.externalIp}.nip.io`
|
||||
: '');
|
||||
} else if (appId === KNATIVE) {
|
||||
this.state.applications.knative.hostname = serverAppEntry.hostname ? serverAppEntry.hostname : '';
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
@ -68,7 +68,7 @@ describe('Applications', () => {
|
|||
runner: { title: 'GitLab Runner' },
|
||||
prometheus: { title: 'Prometheus' },
|
||||
jupyter: { title: 'JupyterHub', hostname: '' },
|
||||
knative: { title: 'Knative', domainname: '' },
|
||||
knative: { title: 'Knative', hostname: '' },
|
||||
},
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue