From d193766f8eaae3f5c49f8aae1ed83776ee83611b Mon Sep 17 00:00:00 2001 From: Chaitrali R Date: Mon, 5 Dec 2022 18:54:26 +0530 Subject: [PATCH 1/2] Dashboard UI Changes --- .../configurations.component.html | 22 +++++++++++-------- .../configurations.component.ts | 4 +++- .../create-vc-template.component.html | 2 +- .../create-vc-template.component.ts | 3 +-- src/assets/i18n/global/en-global.json | 2 +- src/assets/images/certificate.svg | 17 ++++++++++++++ 6 files changed, 36 insertions(+), 14 deletions(-) create mode 100644 src/assets/images/certificate.svg diff --git a/src/app/admin/configurations/configurations.component.html b/src/app/admin/configurations/configurations.component.html index a83605d..0eeaed3 100644 --- a/src/app/admin/configurations/configurations.component.html +++ b/src/app/admin/configurations/configurations.component.html @@ -53,7 +53,7 @@

{{'SCHEMA' | translate}}

-
+

{{'VERIFIABLE_CREDENTIAL' | translate}}

@@ -67,16 +67,20 @@

{{'SCHEMA' | translate}}

-
+
+ *ngIf="(item.schema._osConfig.certificateTemplates | keyvalue)?.length" >
-
{{ item?.name }}
-

{{ item?.name }} {{'CERTIFICATE' | translate}}

+ +

{{ item?.name }}

+
+ + + + {{certName.key}} + + +
diff --git a/src/app/admin/configurations/configurations.component.ts b/src/app/admin/configurations/configurations.component.ts index 4243d67..d2766c7 100644 --- a/src/app/admin/configurations/configurations.component.ts +++ b/src/app/admin/configurations/configurations.component.ts @@ -12,8 +12,10 @@ export class ConfigurationsComponent implements OnInit { constructor(public translate: TranslateService) { this.tenantConfigList = ['Schema','Workflow','VC Template','Ownership','Roles','Theme'] } - + imgUrl="/assets/images/certificate.svg"; + temp:any; ngOnInit(): void { + } } diff --git a/src/app/admin/create-vc-template/create-vc-template.component.html b/src/app/admin/create-vc-template/create-vc-template.component.html index 95222c3..a001a67 100644 --- a/src/app/admin/create-vc-template/create-vc-template.component.html +++ b/src/app/admin/create-vc-template/create-vc-template.component.html @@ -12,7 +12,7 @@
-
+
diff --git a/src/app/admin/create-vc-template/create-vc-template.component.ts b/src/app/admin/create-vc-template/create-vc-template.component.ts index bf7be18..5b3a550 100644 --- a/src/app/admin/create-vc-template/create-vc-template.component.ts +++ b/src/app/admin/create-vc-template/create-vc-template.component.ts @@ -149,8 +149,7 @@ export class CreateVcTemplateComponent implements OnInit { "title":Object.keys(a), "html": res, - }, (err)=>{ - console.log(err); + }); }, (err)=>{ diff --git a/src/assets/i18n/global/en-global.json b/src/assets/i18n/global/en-global.json index a4583b2..9f82f74 100644 --- a/src/assets/i18n/global/en-global.json +++ b/src/assets/i18n/global/en-global.json @@ -138,7 +138,7 @@ "ADD_DETAILS": "Add Details", "EDIT_DETAILS": "Edit Details", "PREVIEW_PUBLIC_PROFILE": "Preview Public Profile", - "EDIT": "edit", + "EDIT": "Edit", "DRAFT": "Draft", "NO_DATA_FOUND": "No Data Found", "PROFILE": "profile", diff --git a/src/assets/images/certificate.svg b/src/assets/images/certificate.svg new file mode 100644 index 0000000..8445955 --- /dev/null +++ b/src/assets/images/certificate.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + From d7a9b41296025f215de523bc871e37319476320f Mon Sep 17 00:00:00 2001 From: Chaitrali R Date: Tue, 6 Dec 2022 09:19:35 +0530 Subject: [PATCH 2/2] Dashboard UI Changes --- src/app/admin/configurations/configurations.component.html | 4 ++-- src/app/admin/configurations/configurations.component.ts | 1 - .../create-vc-template/create-vc-template.component.html | 6 ++++-- .../create-vc-template/create-vc-template.component.ts | 2 +- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/app/admin/configurations/configurations.component.html b/src/app/admin/configurations/configurations.component.html index 0eeaed3..812d68c 100644 --- a/src/app/admin/configurations/configurations.component.html +++ b/src/app/admin/configurations/configurations.component.html @@ -69,14 +69,14 @@

{{'SCHEMA' | translate}}

+ *ngIf="(item?.schema?._osConfig?.certificateTemplates | keyvalue)?.length" >

{{ item?.name }}

- + {{certName.key}} diff --git a/src/app/admin/configurations/configurations.component.ts b/src/app/admin/configurations/configurations.component.ts index d2766c7..ce17849 100644 --- a/src/app/admin/configurations/configurations.component.ts +++ b/src/app/admin/configurations/configurations.component.ts @@ -13,7 +13,6 @@ export class ConfigurationsComponent implements OnInit { this.tenantConfigList = ['Schema','Workflow','VC Template','Ownership','Roles','Theme'] } imgUrl="/assets/images/certificate.svg"; - temp:any; ngOnInit(): void { } diff --git a/src/app/admin/create-vc-template/create-vc-template.component.html b/src/app/admin/create-vc-template/create-vc-template.component.html index a001a67..562c8d7 100644 --- a/src/app/admin/create-vc-template/create-vc-template.component.html +++ b/src/app/admin/create-vc-template/create-vc-template.component.html @@ -18,7 +18,8 @@
{{item?.title}}
- + +
@@ -42,7 +43,8 @@
-
+ +
diff --git a/src/app/admin/create-vc-template/create-vc-template.component.ts b/src/app/admin/create-vc-template/create-vc-template.component.ts index 5b3a550..a8a7da1 100644 --- a/src/app/admin/create-vc-template/create-vc-template.component.ts +++ b/src/app/admin/create-vc-template/create-vc-template.component.ts @@ -148,7 +148,7 @@ export class CreateVcTemplateComponent implements OnInit { this.credTemp.push({ "title":Object.keys(a), - "html": res, + "html": res });