diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2016-11-17 18:57:22 +0300 |
---|---|---|
committer | Filipa Lacerda <filipa@gitlab.com> | 2016-11-17 19:01:59 +0300 |
commit | e51f1cc525a3f63ba32f54289aa382c076ceb9d1 (patch) | |
tree | 895b392d41b7fdfc9f11952e828657504d6ceb12 /app/assets/javascripts | |
parent | 929cb400e1a90ea04f6216f624d0c828bab755e5 (diff) |
Improves variable
Diffstat (limited to 'app/assets/javascripts')
-rw-r--r-- | app/assets/javascripts/environments/components/environment.js.es6 | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/app/assets/javascripts/environments/components/environment.js.es6 b/app/assets/javascripts/environments/components/environment.js.es6 index f0b902d769a..82327823867 100644 --- a/app/assets/javascripts/environments/components/environment.js.es6 +++ b/app/assets/javascripts/environments/components/environment.js.es6 @@ -58,20 +58,20 @@ }, data() { - const environmentsListApp = document.querySelector('#environments-list-view'); + const environmentsData = document.querySelector('#environments-list-view').dataset; return { state: this.store.state, - endpoint: environmentsListApp.dataset.environmentsDataEndpoint, - canCreateDeployment: environmentsListApp.dataset.canCreateDeployment, - canReadEnvironment: environmentsListApp.dataset.canReadEnvironment, - canCreateEnvironment: environmentsListApp.dataset.canCreateEnvironment, - projectEnvironmentsPath: environmentsListApp.dataset.projectEnvironmentsPath, - projectStoppedEnvironmentsPath: environmentsListApp.dataset.projectStoppedEnvironmentsPath, - newEnvironmentPath: environmentsListApp.dataset.newEnvironmentPath, - helpPagePath: environmentsListApp.dataset.helpPagePath, visibility: 'available', isLoading: false, + endpoint: environmentsData.environmentsDataEndpoint, + canCreateDeployment: environmentsData.canCreateDeployment, + canReadEnvironment: environmentsData.canReadEnvironment, + canCreateEnvironment: environmentsData.canCreateEnvironment, + projectEnvironmentsPath: environmentsData.projectEnvironmentsPath, + projectStoppedEnvironmentsPath: environmentsData.projectStoppedEnvironmentsPath, + newEnvironmentPath: environmentsData.newEnvironmentPath, + helpPagePath: environmentsData.helpPagePath, }; }, |