diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2017-03-14 03:58:26 +0300 |
---|---|---|
committer | Alfredo Sumaran <alfredo@gitlab.com> | 2017-03-14 03:58:26 +0300 |
commit | cbf1b656a464e0e544f7e559efed6851616e377f (patch) | |
tree | 2377f33dbd9301f1803101ffb78fedf2dfe35585 /app/assets/javascripts/environments/stores | |
parent | 4b4e1f0455fdf4483573a23e74a33e46c6564be1 (diff) |
Use a button and a post request instead of UJS links - part 1 - Environments
Diffstat (limited to 'app/assets/javascripts/environments/stores')
-rw-r--r-- | app/assets/javascripts/environments/stores/environments_store.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/app/assets/javascripts/environments/stores/environments_store.js b/app/assets/javascripts/environments/stores/environments_store.js index 15cd9bde08e..d3fe3872c56 100644 --- a/app/assets/javascripts/environments/stores/environments_store.js +++ b/app/assets/javascripts/environments/stores/environments_store.js @@ -1,11 +1,12 @@ -require('~/lib/utils/common_utils'); +import '~/lib/utils/common_utils'; + /** * Environments Store. * * Stores received environments, count of stopped environments and count of * available environments. */ -class EnvironmentsStore { +export default class EnvironmentsStore { constructor() { this.state = {}; this.state.environments = []; @@ -86,5 +87,3 @@ class EnvironmentsStore { return count; } } - -module.exports = EnvironmentsStore; |