Skip to content

Commit

Permalink
Merge branch 'fix/warning-modal' into 'develop'
Browse files Browse the repository at this point in the history
display proper button label for secure device warning

See merge request papers/airgap/airgap-vault!243
  • Loading branch information
godenzim committed Mar 17, 2021
2 parents 386014c + 16b3d4b commit fb4e139
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/app/pages/warning-modal/warning-modal.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,17 @@ export class WarningModalPage implements AfterContentInit {

if (this.errorType === Warning.SECURE_STORAGE) {
this.translateService
.get(['warnings-modal.secure-storage.title', 'warnings-modal.secure-storage.description'])
.get([
'warnings-modal.secure-storage.title',
'warnings-modal.secure-storage.description',
'warnings-modal.secure-storage.button-text_label'
])
.subscribe((values) => {
this.title = values['warnings-modal.secure-storage.title']
this.description = values['warnings-modal.secure-storage.description']
this.buttonText = values['warnings-modal.secure-storage.button-text_label']
})
this.imageUrl = './assets/img/screenshot_detected.svg'
this.buttonText = 'warnings-modal.secure-storage.button-text_label'
this.handler = (): void => {
this.secureStorageService.secureDevice().catch(handleErrorLocal(ErrorCategory.SECURE_STORAGE))
}
Expand Down

0 comments on commit fb4e139

Please sign in to comment.