Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2018-11-05 22:22:53 +0300
committerThong Kuah <tkuah@gitlab.com>2018-11-08 13:26:04 +0300
commitc72cf87918b9c7722d5b8b67bd6a86bc3945754c (patch)
tree63e1ad6dd24961a64f0e6e665b57812ea9dad829 /app/assets/javascripts/clusters/constants.js
parent1eadb490ebf70a3254b9004b32ce8b7a60c75838 (diff)
Define cluster types in a constant within frontend
Diffstat (limited to 'app/assets/javascripts/clusters/constants.js')
-rw-r--r--app/assets/javascripts/clusters/constants.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/assets/javascripts/clusters/constants.js b/app/assets/javascripts/clusters/constants.js
index d707420c845..15cf4a56138 100644
--- a/app/assets/javascripts/clusters/constants.js
+++ b/app/assets/javascripts/clusters/constants.js
@@ -1,3 +1,10 @@
+// These need to match the enum found in app/models/clusters/cluster.rb
+export const CLUSTER_TYPE = {
+ INSTANCE: 'instance_type',
+ GROUP: 'group_type',
+ PROJECT: 'project_type',
+};
+
// These need to match what is returned from the server
export const APPLICATION_STATUS = {
NOT_INSTALLABLE: 'not_installable',