fix(console): application state, add project role bulk, user grant explanations, i18n, ngsw update prompt #341

This commit is contained in:
Max Peintner
2020-07-03 15:07:43 +02:00
committed by GitHub
parent 7b67b55f4e
commit 73a4b7baef
9 changed files with 42 additions and 24 deletions
+7 -3
View File
@@ -297,9 +297,11 @@ export class ProjectService {
);
}
public async ReactivateApplication(appId: string): Promise<Application> {
public async ReactivateApplication(projectId: string, appId: string): Promise<Application> {
const req = new ApplicationID();
req.setId(appId);
req.setProjectId(projectId);
return await this.request(
c => c.reactivateApplication,
req,
@@ -307,9 +309,11 @@ export class ProjectService {
);
}
public async DectivateApplication(projectId: string): Promise<Application> {
public async DeactivateApplication(projectId: string, appId: string): Promise<Application> {
const req = new ApplicationID();
req.setId(projectId);
req.setId(appId);
req.setProjectId(projectId);
return await this.request(
c => c.deactivateApplication,
req,
+2 -1
View File
@@ -2,12 +2,13 @@ import { Injectable } from '@angular/core';
import { MatSnackBar } from '@angular/material/snack-bar';
import { SwUpdate } from '@angular/service-worker';
@Injectable({
providedIn: 'root',
})
export class UpdateService {
constructor(private swUpdate: SwUpdate, snackbar: MatSnackBar) {
this.swUpdate.checkForUpdate();
this.swUpdate.available.subscribe((evt) => {
const snack = snackbar.open('Update Available', 'Reload');