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:
authorEnrique Alcantara <ealcantara@gitlab.com>2019-04-16 17:30:09 +0300
committerEnrique Alcantara <ealcantara@gitlab.com>2019-04-17 18:01:33 +0300
commit8f6ec252a3a440687740925ec5b01d895fe3e2c0 (patch)
tree431f3c98fa8cbbe62d691bf19e2dc15ed412ef3e /app/assets/javascripts/clusters/constants.js
parentb15a78dfdd497848a0fd763185e79b0361da1dbb (diff)
Determine if app is installed in the store
- Create installed property for cluster apps - Pass installed property to the application_row component
Diffstat (limited to 'app/assets/javascripts/clusters/constants.js')
-rw-r--r--app/assets/javascripts/clusters/constants.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/app/assets/javascripts/clusters/constants.js b/app/assets/javascripts/clusters/constants.js
index 67f481f2afb..17849497c87 100644
--- a/app/assets/javascripts/clusters/constants.js
+++ b/app/assets/javascripts/clusters/constants.js
@@ -15,9 +15,24 @@ export const APPLICATION_STATUS = {
UPDATING: 'updating',
UPDATED: 'updated',
UPDATE_ERRORED: 'update_errored',
+ UNINSTALLING: 'uninstalling',
+ UNINSTALL_ERRORED: 'uninstall_errored',
ERROR: 'errored',
};
+/*
+ * The application cannot be in any of the following states without
+ * not being installed.
+ */
+export const APPLICATION_INSTALLED_STATUSES = [
+ APPLICATION_STATUS.INSTALLED,
+ APPLICATION_STATUS.UPDATING,
+ APPLICATION_STATUS.UPDATED,
+ APPLICATION_STATUS.UPDATE_ERRORED,
+ APPLICATION_STATUS.UNINSTALLING,
+ APPLICATION_STATUS.UNINSTALL_ERRORED,
+];
+
// These are only used client-side
export const REQUEST_SUBMITTED = 'request-submitted';
export const REQUEST_FAILURE = 'request-failure';