diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-04-04 00:09:37 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-04-04 00:09:37 +0000 |
commit | e3bdfa1a13d7e6c92716324c78b5b20c07eeb7c6 (patch) | |
tree | e8776263096b027d32d4be5118cccc87b00de2bc /app/assets/javascripts/clusters/stores/clusters_store.js | |
parent | c1a50b8195f4e36fda9b233acbde57a449bcf6c3 (diff) | |
download | gitlab-ce-e3bdfa1a13d7e6c92716324c78b5b20c07eeb7c6.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/clusters/stores/clusters_store.js')
-rw-r--r-- | app/assets/javascripts/clusters/stores/clusters_store.js | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/app/assets/javascripts/clusters/stores/clusters_store.js b/app/assets/javascripts/clusters/stores/clusters_store.js index 8685e3decc5..b09fd6800b6 100644 --- a/app/assets/javascripts/clusters/stores/clusters_store.js +++ b/app/assets/javascripts/clusters/stores/clusters_store.js @@ -93,7 +93,7 @@ export default class ClusterStore { ...applicationInitialState, title: s__('ClusterIntegration|Knative'), hostname: null, - isEditingHostName: false, + isEditingDomain: false, externalIp: null, externalHostname: null, updateSuccessful: false, @@ -234,7 +234,12 @@ export default class ClusterStore { 'jupyter', ); } else if (appId === KNATIVE) { - if (!this.state.applications.knative.isEditingHostName) { + if (serverAppEntry.available_domains) { + this.state.applications.knative.availableDomains = serverAppEntry.available_domains; + } + if (!this.state.applications.knative.isEditingDomain) { + this.state.applications.knative.pagesDomain = + serverAppEntry.pages_domain || this.state.applications.knative.pagesDomain; this.state.applications.knative.hostname = serverAppEntry.hostname || this.state.applications.knative.hostname; } |