From b28fc6f955f5e956841bce24fedcf6b59555f0f1 Mon Sep 17 00:00:00 2001 From: Dragos Date: Tue, 1 Jun 2021 11:21:30 +0300 Subject: [PATCH] cosmetic changes --- .../account-editor.component.ts | 10 ++-- app/src/app/account/account.component.html | 2 +- .../custom-image-editor.component.ts | 12 ++++- .../app/catalog/helpers/catalog.service.ts | 2 +- app/src/app/security/security.component.html | 48 +++++++++---------- app/src/app/security/security.component.scss | 5 ++ 6 files changed, 46 insertions(+), 33 deletions(-) diff --git a/app/src/app/account/account-editor/account-editor.component.ts b/app/src/app/account/account-editor/account-editor.component.ts index 656e8ea..981d9a4 100644 --- a/app/src/app/account/account-editor/account-editor.component.ts +++ b/app/src/app/account/account-editor/account-editor.component.ts @@ -50,11 +50,11 @@ export class AccountEditorComponent implements OnInit firstName: [userInfo.firstName], lastName: [userInfo.lastName], companyName: [userInfo.companyName], - address: [userInfo.address], - postalCode: [userInfo.postalCode], - city: [userInfo.city], - state: [userInfo.state], - country: [userInfo.country], + // address: [userInfo.address], + // postalCode: [userInfo.postalCode], + // city: [userInfo.city], + // state: [userInfo.state], + // country: [userInfo.country], email: [userInfo.email], phone: [userInfo.phone], cns: [userInfo.triton_cns_enabled] diff --git a/app/src/app/account/account.component.html b/app/src/app/account/account.component.html index 9545658..4bf3795 100644 --- a/app/src/app/account/account.component.html +++ b/app/src/app/account/account.component.html @@ -53,7 +53,7 @@ diff --git a/app/src/app/catalog/custom-image-editor/custom-image-editor.component.ts b/app/src/app/catalog/custom-image-editor/custom-image-editor.component.ts index 8041db3..aaa798a 100644 --- a/app/src/app/catalog/custom-image-editor/custom-image-editor.component.ts +++ b/app/src/app/catalog/custom-image-editor/custom-image-editor.component.ts @@ -53,7 +53,17 @@ export class CustomImageEditorComponent implements OnInit // ---------------------------------------------------------------------------------------------------------------- saveChanges() { - this.save.next(this.editorForm.getRawValue()); + const changes = this.editorForm.getRawValue(); + + const image: any = { + name: changes.name, + version: changes.version + }; + + if (changes.description) + image.description = changes.description; + + this.save.next(image); this.modalRef.hide(); } diff --git a/app/src/app/catalog/helpers/catalog.service.ts b/app/src/app/catalog/helpers/catalog.service.ts index d3a3b22..66b0b38 100644 --- a/app/src/app/catalog/helpers/catalog.service.ts +++ b/app/src/app/catalog/helpers/catalog.service.ts @@ -105,7 +105,7 @@ export class CatalogService } // ---------------------------------------------------------------------------------------------------------------- - getImageUntilExpectedState(image: CatalogImage, expectedStates: string[], maxRetries = 10): Observable + getImageUntilExpectedState(image: CatalogImage, expectedStates: string[], maxRetries = 30): Observable { // Keep polling the image until it reaches the expected state return this.httpClient.get(`/api/my/images/${image.id}`) diff --git a/app/src/app/security/security.component.html b/app/src/app/security/security.component.html index 5b76f4e..f64016c 100644 --- a/app/src/app/security/security.component.html +++ b/app/src/app/security/security.component.html @@ -91,9 +91,9 @@ [cdkDropListEnterPredicate]="rolesEnterPredicate" (cdkDropListDropped)="drop($event)" cdkDrag [cdkDragData]="role" cdkDragBoundary="#securitySettings">
-
- + @@ -136,18 +136,16 @@
{{ 'security.dropHere' | translate }}
-
+
    -
  • +
  • - {{ policy.name }} -
    - -
    + {{ policy.name }} +
@@ -178,14 +176,16 @@ cdkDropList [cdkDropListData]="user" cdkDropListSortingDisabled sortingDisabled [cdkDropListEnterPredicate]="usersEnterPredicate" (cdkDropListDropped)="drop($event)">
-
- + - {{ user.login }} ({{ user.roles.length }}) + + {{ user.login }} ({{ user.roles.length }}) +
@@ -223,17 +223,15 @@
{{ 'security.dropHere' | translate }}
-
+
    -
  • +
  • - {{ role.name }} -
    - -
    + {{ role.name }} +
diff --git a/app/src/app/security/security.component.scss b/app/src/app/security/security.component.scss index 55de421..0de2a00 100644 --- a/app/src/app/security/security.component.scss +++ b/app/src/app/security/security.component.scss @@ -116,3 +116,8 @@ legend { /*box-shadow: 0 0 3px -1px #0dcaf0;*/ } + +.toggler +{ + cursor: pointer; +} \ No newline at end of file