diff options
author | Ezekiel Kigbo <ekigbo@gitlab.com> | 2019-07-23 17:23:59 +1000 |
---|---|---|
committer | Ezekiel Kigbo <ekigbo@gitlab.com> | 2019-07-23 17:23:59 +1000 |
commit | 52b8f17cf7c238cb56ef8ee2ffb7aa88830b427a (patch) | |
tree | 5f1c5b6b6e547ea9e16d1b1a84cc99e390be0275 | |
parent | 502901019aeb01252fba7fbd427513a58a8aefe7 (diff) | |
download | gitlab-ce-ek-customizable-ca-mvp.tar.gz |
Load form on triggerek-customizable-ca-mvp
-rw-r--r-- | app/assets/javascripts/cycle_analytics/cycle_analytics_bundle.js | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/app/assets/javascripts/cycle_analytics/cycle_analytics_bundle.js b/app/assets/javascripts/cycle_analytics/cycle_analytics_bundle.js index 3d49de0da69..4f8d15e60fd 100644 --- a/app/assets/javascripts/cycle_analytics/cycle_analytics_bundle.js +++ b/app/assets/javascripts/cycle_analytics/cycle_analytics_bundle.js @@ -69,8 +69,6 @@ export default () => { // variable itself can be completely removed. // Follow up issue: https://gitlab.com/gitlab-org/gitlab-ce/issues/64490 if (cycleAnalyticsEl.dataset.requestPath) this.fetchCycleAnalyticsData(); - // TODO: remove - this.addStageForm = true; }, methods: { handleError() { @@ -143,6 +141,10 @@ export default () => { this.isLoadingStage = false; }); }, + dismissOverviewDialog() { + this.isOverviewDialogDismissed = true; + Cookies.set(OVERVIEW_DIALOG_COOKIE, '1', { expires: 365 }); + }, showAddStageForm() { console.log('cycle_analytics_bundle::showAddStageForm', this); // TODO: should these eventually be moved to actions for a vuex store @@ -154,13 +156,9 @@ export default () => { // TODO: perhaps could be something more like this.activeStage('stage-name') ie loading, empty, custom form etc // Should eventually be actions emitted to the vuex store - this.isCustomStageForm = true; + this.addStageForm = true; this.isLoadingStage = false; }, - dismissOverviewDialog() { - this.isOverviewDialogDismissed = true; - Cookies.set(OVERVIEW_DIALOG_COOKIE, '1', { expires: 365 }); - }, }, }); }; |