Skip to content

Commit 1ce3627

Browse files
authored
FIX bugs + ADD new certifications (#143)
* FIX feedback modal wont show up again on search if closed from cross button * FIX bugs + ADD new certification list
1 parent 61f78ed commit 1ce3627

File tree

6 files changed

+25
-7
lines changed

6 files changed

+25
-7
lines changed

src/app/app.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<app-chatbot-widget class="relative z-50"></app-chatbot-widget>
77
}
88

9-
<bae-footer class="fixed w-full z-50 bottom-0 start-0"></bae-footer>
9+
<bae-footer class="fixed w-full z-30 bottom-0 start-0"></bae-footer>
1010

1111
@if(isProduction){
1212
<script type="text/javascript"> _linkedin_partner_id = "8700705"; window._linkedin_data_partner_ids = window._linkedin_data_partner_ids || []; window._linkedin_data_partner_ids.push(_linkedin_partner_id); </script><script type="text/javascript"> (function(l) { if (!l){window.lintrk = function(a,b){window.lintrk.q.push([a,b])}; window.lintrk.q=[]} var s = document.getElementsByTagName("script")[0]; var b = document.createElement("script"); b.type = "text/javascript";b.async = true; b.src = "https://snap.licdn.com/li.lms-analytics/insight.min.js"; s.parentNode.insertBefore(b, s);})(window.lintrk); </script> <noscript> <img height="1" width="1" style="display:none;" alt="" src="https://px.ads.linkedin.com/collect/?pid=8700705&fmt=gif" /> </noscript>

src/app/models/certification-standards.const.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
export const certifications = [
2+
{ id: 1, name: 'SecNumCloud', mandatory: false , domesupported: true},
3+
{ id: 2, name: 'BSI-C5', mandatory: false, domesupported: true },
4+
{ id: 3, name: 'CISPE', mandatory: false, domesupported: true },
5+
{ id: 4, name: 'EU Cloud CoC', mandatory: false, domesupported: true },
6+
{ id: 5, name: 'CSA CCM', mandatory: false, domesupported: true },
7+
{ id: 6, name: 'ISO/IEC 27001', mandatory: false, domesupported: true },
8+
{ id: 7, name: 'TISAX', mandatory: false, domesupported: true },
9+
{ id: 8, name: 'SWIPO', mandatory: false, domesupported: true },
210
//Information security
3-
{ id: 1, name: 'ISO 22301:2019', mandatory: false , domesupported: true},
11+
/*{ id: 1, name: 'ISO 22301:2019', mandatory: false , domesupported: true},
412
{ id: 2, name: 'ISO/IEC 27000:2018', mandatory: false, domesupported: true },
513
{ id: 3, name: 'ISO/IEC 27001:2022', mandatory: false, domesupported: true },
614
{ id: 4, name: 'ISO/IEC 27002:2022', mandatory: false, domesupported: true },
@@ -24,5 +32,5 @@ export const certifications = [
2432
//Service level agreement
2533
{ id: 18, name: 'ISO/IEC 19086-1:201', mandatory: false, domesupported: false },
2634
{ id: 19, name: 'ISO/IEC 19086-2:2018', mandatory: false, domesupported: false },
27-
{ id: 20, name: 'ISO/IEC 19086-3:2017', mandatory: false, domesupported: false }
35+
{ id: 20, name: 'ISO/IEC 19086-3:2017', mandatory: false, domesupported: false }*/
2836
]

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -230,11 +230,11 @@ <h3 class="text-2xl font-bold text-primary-100 dark:text-primary-50 text-left mb
230230
No level
231231
</h3>
232232
}@else if(complianceLevel=='BL'){
233-
<img class="z-10 dark:text-white rounded-md mr-2" src="assets/logos/baseline.png">
233+
<img class="z-10 dark:text-white rounded-md mr-2 max-w-md" src="assets/logos/baseline.png">
234234
} @else if(complianceLevel=='P') {
235-
<img class="z-10 dark:text-white rounded-md mr-2" src="assets/logos/prof.png">
235+
<img class="z-10 dark:text-white rounded-md mr-2 max-w-md" src="assets/logos/prof.png">
236236
} @else {
237-
<img class="z-10 dark:text-white rounded-md mr-2" src="assets/logos/profplus.png">
237+
<img class="z-10 dark:text-white rounded-md mr-2 max-w-md" src="assets/logos/profplus.png">
238238
}
239239
<p class="mb-2 text-gray-800 dark:text-gray-200">
240240
{{ complianceDescription }}

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,7 @@ export class ProductDetailsComponent implements OnInit {
265265
}
266266
}
267267
}
268+
268269
if(this.prodSpec.serviceSpecification != undefined){
269270
for(let j=0; j < this.prodSpec.serviceSpecification.length; j++){
270271
let serv = await this.api.getServiceSpec(this.prodSpec.serviceSpecification[j].id);
@@ -273,7 +274,7 @@ export class ProductDetailsComponent implements OnInit {
273274
}
274275
if(this.prodSpec.resourceSpecification != undefined){
275276
for(let j=0; j < this.prodSpec.resourceSpecification.length; j++){
276-
let res = this.api.getResourceSpec(this.prodSpec.resourceSpecification[j].id);
277+
let res = await this.api.getResourceSpec(this.prodSpec.resourceSpecification[j].id);
277278
this.resourceSpecs.push(res);
278279
}
279280
}

src/app/shared/feedback-modal/feedback-modal.component.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { FeedbackServiceService } from "src/app/services/feedback-service.servic
55
import {LocalStorageService} from "../../services/local-storage.service";
66
import { lastValueFrom } from 'rxjs';
77
import { FeedbackInfo } from 'src/app/models/interfaces';
8+
import { environment } from 'src/environments/environment';
89

910
@Component({
1011
selector: 'feedback-modal',
@@ -81,6 +82,13 @@ export class FeedbackModalComponent implements OnInit {
8182
}
8283

8384
hide(){
85+
let feedbackInfo = this.localStorage.getObject('feedback') as FeedbackInfo;
86+
let expiration = feedbackInfo?.expire ?? environment?.feedbackCampaignExpiration ?? 0;
87+
let wantsFeedback : FeedbackInfo = {
88+
"expire": expiration,
89+
"approval": false
90+
}
91+
this.localStorage.setObject('feedback',wantsFeedback)
8492
this.eventMessage.emitCloseFeedback(true);
8593
}
8694

src/app/shared/forms/markdown-textarea/markdown-textarea.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ export class MarkdownTextareaComponent implements ControlValueAccessor {
9393
addEmoji(event:any){
9494
this.showEmoji=false;
9595
this.value += event.emoji.native
96+
this.onChange(this.value);
9697
}
9798

9899
addMarkdownTag(tag: string): void {

0 commit comments

Comments
 (0)