Skip to content

Commit 15ae1a3

Browse files
authored
Qa tickets (#145)
* ADD contact button to header + now attatchment names show only file name * FIX attatchment name now adding uuidv4 to file name * Filter enabled characteristics on product detail page
1 parent 1ce3627 commit 15ae1a3

File tree

4 files changed

+10
-5
lines changed

4 files changed

+10
-5
lines changed

src/app/pages/product-details/product-details.component.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,9 +243,9 @@ export class ProductDetailsComponent implements OnInit {
243243
}
244244

245245
if(this.prodSpec.productSpecCharacteristic != undefined) {
246-
// Avoid displaying the compliance credential
246+
// Avoid displaying the compliance credential && Avoid showing "- enabled" chars
247247
this.prodChars = this.prodSpec.productSpecCharacteristic.filter((char: any) => {
248-
return char.name != 'Compliance:VC' && char.name != 'Compliance:SelfAtt'
248+
return char.name != 'Compliance:VC' && char.name != 'Compliance:SelfAtt' && !char.name?.endsWith(' - enabled')
249249
})
250250

251251
for(let i=0; i<certifications.length; i++){
@@ -264,6 +264,7 @@ export class ProductDetailsComponent implements OnInit {
264264
this.prodChars.splice(index, 1);
265265
}
266266
}
267+
267268
}
268269

269270
if(this.prodSpec.serviceSpecification != undefined){

src/app/pages/seller-offerings/offerings/seller-product-spec/create-product-spec/create-product-spec.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ export class CreateProductSpecComponent implements OnInit {
426426
}
427427
let fileBody = {
428428
content: {
429-
name: prod_name+file.name,
429+
name: uuidv4()+'_'+file.name,
430430
data: base64String
431431
},
432432
contentType: file.type,

src/app/pages/seller-offerings/offerings/seller-product-spec/update-product-spec/update-product-spec.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,7 @@ export class UpdateProductSpecComponent implements OnInit {
631631
}
632632
let fileBody = {
633633
content: {
634-
name: prod_name+file.name,
634+
name: uuidv4()+'_'+file.name,
635635
data: base64String
636636
},
637637
contentType: file.type,

src/app/themes/dome.theme.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ const domeHeaderLinks: NavLink[] = [
2828
label: 'HEADER._blog',
2929
url: '/blog',
3030
isRouterLink: true
31+
},
32+
{
33+
label: 'FOOTER._contact',
34+
url: '/contact-us',
35+
isRouterLink: true
3136
}
3237
];
3338

@@ -36,7 +41,6 @@ const domeFooterLinks: NavLink[] = [
3641
{ label: 'FOOTER._privacy', url: 'assets/documents/privacy.pdf', isRouterLink: false },
3742
{ label: 'FOOTER._cookies', url: 'assets/documents/cookies.pdf', isRouterLink: false },
3843
{ label: 'FOOTER._licensing', url: 'assets/documents/terms.pdf', isRouterLink: false },
39-
{ label: 'FOOTER._contact', url: '/contact-us', isRouterLink: true },
4044
];
4145

4246

0 commit comments

Comments
 (0)