diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2018-05-24 21:00:21 +0100 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2018-05-25 17:16:42 +0300 |
commit | e1d4deb2d2bc91c0730b57f81196b290fdfa86cf (patch) | |
tree | 179c389bcee4f893655f615b523321e746dfae89 /app/assets/javascripts/clusters/clusters_bundle.js | |
parent | b3cf1530829755411a7057031c2e8ea36ee31b62 (diff) | |
download | gitlab-ce-e1d4deb2d2bc91c0730b57f81196b290fdfa86cf.tar.gz |
Disables jupyter install button while ingress is not installed
Includes juptyer hostname in the post request
Adds tests
Diffstat (limited to 'app/assets/javascripts/clusters/clusters_bundle.js')
-rw-r--r-- | app/assets/javascripts/clusters/clusters_bundle.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/assets/javascripts/clusters/clusters_bundle.js b/app/assets/javascripts/clusters/clusters_bundle.js index 6bf9dca1112..e42a3632e79 100644 --- a/app/assets/javascripts/clusters/clusters_bundle.js +++ b/app/assets/javascripts/clusters/clusters_bundle.js @@ -211,11 +211,12 @@ export default class Clusters { } } - installApplication(appId) { + installApplication(data) { + const appId = data.id; this.store.updateAppProperty(appId, 'requestStatus', REQUEST_LOADING); this.store.updateAppProperty(appId, 'requestReason', null); - this.service.installApplication(appId) + this.service.installApplication(appId, data.params) .then(() => { this.store.updateAppProperty(appId, 'requestStatus', REQUEST_SUCCESS); }) |