Skip to content

Commit

Permalink
changes in service file
Browse files Browse the repository at this point in the history
  • Loading branch information
Bharath Kumar authored and Bharath Kumar committed Aug 6, 2024
1 parent 7c7988c commit caba832
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ import { NsWidgetResolver } from '@sunbird-cb/resolver'
import { NsContentStripWithTabs } from '../../../content-strip-with-tabs/content-strip-with-tabs.model'

import { AppTocService } from '@ws/app/src/lib/routes/app-toc/services/app-toc.service'
import { NsContent, RatingService, WidgetContentService } from '@sunbird-cb/collection/src/public-api'
import { LoggerService, ConfigurationsService } from '@sunbird-cb/utils-v2'
import { NsContent, RatingService } from '@sunbird-cb/collection/src/public-api'
import { LoggerService, ConfigurationsService, WidgetContentService } from '@sunbird-cb/utils-v2'
import { TimerService } from '@ws/app/src/lib/routes/app-toc/services/timer.service'
import { HandleClaimService } from '../content-services/handle-claim.service'
import { LoadCheckService } from '@ws/app/src/lib/routes/app-toc/services/load-check.service'
Expand Down Expand Up @@ -699,7 +699,7 @@ export class AppTocAboutComponent implements OnInit, OnChanges, AfterViewInit, O
handleOpenCertificateDialog() {
this.downloadCertificateBool = true
const certId = this.content && this.content.certificateObj.certId
if (this.content && this.content.certificateObj && this.content.certificateObj.certData) {
if (this.content && this.content.certificateObj && !this.content.certificateObj.certData) {
this.contentSvc.downloadCert(certId).subscribe(response => {
if (this.content) {
this.downloadCertificateBool = false
Expand All @@ -715,6 +715,7 @@ export class AppTocAboutComponent implements OnInit, OnChanges, AfterViewInit, O
this.matSnackBar.open('Unable to View Certificate, due to some error!')
})
} else {
this.downloadCertificateBool = false
this.dialog.open(CertificateDialogComponent, {
width: '1200px',
data: { cet: this.content && this.content.certificateObj.certData, certId: this.content && this.content.certificateObj.certId },
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"@sunbird-cb/micro-surveys": "^2.0.17",
"@sunbird-cb/rain-dashboards": "0.4.33",
"@sunbird-cb/resolver-v2": "0.0.7",
"@sunbird-cb/utils-v2": "0.0.8",
"@sunbird-cb/utils-v2": "0.0.10",
"@types/file-saver": "^2.0.1",
"@types/uuid": "^8.3.1",
"bootstrap": "5.1.2",
Expand Down

0 comments on commit caba832

Please sign in to comment.