aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/api
diff options
context:
space:
mode:
authorGrégoire Aubert <gregoire.aubert@sonarsource.com>2017-10-18 16:46:15 +0200
committerGrégoire Aubert <gregoire.aubert@sonarsource.com>2017-10-23 08:01:13 -0700
commitcc18c716b7b930b7b93c94218e8947755b2dbe87 (patch)
tree0db2d6bd4561c8c7d272f5ef08486c187d25ba8b /server/sonar-web/src/main/js/api
parent13b8590acb21f58d0485729425cff724dee3d999 (diff)
downloadsonarqube-cc18c716b7b930b7b93c94218e8947755b2dbe87.tar.gz
sonarqube-cc18c716b7b930b7b93c94218e8947755b2dbe87.zip
SONAR-10001 Add dialog box to uninstall and edition
Diffstat (limited to 'server/sonar-web/src/main/js/api')
-rw-r--r--server/sonar-web/src/main/js/api/marketplace.ts7
1 files changed, 6 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/api/marketplace.ts b/server/sonar-web/src/main/js/api/marketplace.ts
index 4cff1587d94..30c801ae0f2 100644
--- a/server/sonar-web/src/main/js/api/marketplace.ts
+++ b/server/sonar-web/src/main/js/api/marketplace.ts
@@ -41,7 +41,8 @@ export interface EditionStatus {
| 'AUTOMATIC_IN_PROGRESS'
| 'MANUAL_IN_PROGRESS'
| 'AUTOMATIC_READY'
- | 'AUTOMATIC_FAILURE';
+ | 'AUTOMATIC_FAILURE'
+ | 'UNINSTALL_IN_PROGRESS';
}
export function getEditionStatus(): Promise<EditionStatus> {
@@ -67,3 +68,7 @@ export function getLicensePreview(data: {
export function applyLicense(data: { license: string }): Promise<EditionStatus> {
return postJSON('/api/editions/apply_license', data).catch(throwGlobalError);
}
+
+export function uninstallEdition(): Promise<void | Response> {
+ return postJSON('/api/editions/uninstall').catch(throwGlobalError);
+}