Skip to content

Commit

Permalink
Minor fix disable script
Browse files Browse the repository at this point in the history
  • Loading branch information
jasny committed Dec 18, 2024
1 parent 6327aed commit b2c8ac0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions src/app/modals/disable-script/disable-script.component.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<div mat-dialog-title>Script transaction</div>
<mat-dialog-content>
Are you sure you want to disable script?
<p>Fee: {{fee | amountDivide}}</p>
Are you sure you want to remove the smart account script?
<p>Fee: {{fee | amountDivide}} LTO</p>
</mat-dialog-content>
<mat-dialog-actions>
<button mat-button [mat-dialog-close]="false">Cancel</button>
<button mat-button color="primary" [mat-dialog-close]="true">Disable</button>
<button mat-button color="primary" [mat-dialog-close]="true">Remove</button>
</mat-dialog-actions>
10 changes: 5 additions & 5 deletions src/app/pages/settings-page/settings-page.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ export class SettingsPageComponent implements OnInit, OnDestroy {
duration: 3000,
});
} catch (error) {
this._snackbar.open('Cannot create script', 'DISMISS', {
duration: 3000,
this._snackbar.open('Failed to create script', 'DISMISS', {
duration: 10000,
});
}
}
Expand All @@ -94,13 +94,13 @@ export class SettingsPageComponent implements OnInit, OnDestroy {
return;
}
try {
this._scriptService.disabeScript();
await this._scriptService.disabeScript();
this._snackbar.open('Script removed', 'DISMISS', {
duration: 3000,
});
} catch (error) {
this._snackbar.open('Cannot remove script', 'DISMISS', {
duration: 3000,
this._snackbar.open('Failed to remove script', 'DISMISS', {
duration: 10000,
});
}
}
Expand Down

0 comments on commit b2c8ac0

Please sign in to comment.