diff --git a/build/console/generate-grpc.sh b/build/console/generate-grpc.sh index 677b922155..06e1fd18ba 100755 --- a/build/console/generate-grpc.sh +++ b/build/console/generate-grpc.sh @@ -10,10 +10,14 @@ rm -rf $GEN_PATH echo "Create folders" mkdir -p $GEN_PATH +targetcurl () { + mkdir -p $1 && cd $1 && { curl -O $2; cd -; } +} + echo "Download additional protofiles" -wget -P tmp/validate https://raw.githubusercontent.com/envoyproxy/protoc-gen-validate/v0.4.0/validate/validate.proto -wget -P tmp/protoc-gen-swagger/options https://raw.githubusercontent.com/grpc-ecosystem/grpc-gateway/v1.14.6/protoc-gen-swagger/options/annotations.proto -wget -P tmp/protoc-gen-swagger/options https://raw.githubusercontent.com/grpc-ecosystem/grpc-gateway/v1.14.6/protoc-gen-swagger/options/openapiv2.proto +targetcurl tmp/validate https://raw.githubusercontent.com/envoyproxy/protoc-gen-validate/v0.4.0/validate/validate.proto +targetcurl tmp/protoc-gen-swagger/options https://raw.githubusercontent.com/grpc-ecosystem/grpc-gateway/v1.14.6/protoc-gen-swagger/options/annotations.proto +targetcurl tmp/protoc-gen-swagger/options https://raw.githubusercontent.com/grpc-ecosystem/grpc-gateway/v1.14.6/protoc-gen-swagger/options/openapiv2.proto echo "Generate grpc" diff --git a/console/src/app/app.module.ts b/console/src/app/app.module.ts index c27d11e188..1d49a5a55d 100644 --- a/console/src/app/app.module.ts +++ b/console/src/app/app.module.ts @@ -103,7 +103,7 @@ export let authConfig = { MatMenuModule, MatSnackBarModule, AvatarModule, - ServiceWorkerModule.register('ngsw-config.json', { enabled: environment.production }), + ServiceWorkerModule.register('ngsw-worker.js', { enabled: environment.production }), ], providers: [ ThemeService, diff --git a/console/src/app/modules/accounts-card/accounts-card.component.html b/console/src/app/modules/accounts-card/accounts-card.component.html index 8ec771c0dd..c705f50765 100644 --- a/console/src/app/modules/accounts-card/accounts-card.component.html +++ b/console/src/app/modules/accounts-card/accounts-card.component.html @@ -10,7 +10,7 @@
{{data.descriptionKey | translate}}
+