Implement organization maker-checker workflows
This commit is contained in:
@@ -297,8 +297,14 @@ export class GlSettingsDialogComponent implements OnInit {
|
||||
ddLimitAmount: val.ddLimitAmount
|
||||
})
|
||||
.subscribe({
|
||||
next: () => {
|
||||
this.snackBar.open('Sponsor DD GL Mapping & GST Settings saved successfully!', 'Close', { duration: 3000 });
|
||||
next: (res: any) => {
|
||||
// A save submitted for approval comes back HTTP 200 with rollbackTransaction: true - the
|
||||
// mapping has not actually been applied yet, so this must not claim success the same way an
|
||||
// immediate save does.
|
||||
const message = res?.rollbackTransaction
|
||||
? 'Sponsor DD GL Mapping & GST Settings submitted for approval'
|
||||
: 'Sponsor DD GL Mapping & GST Settings saved successfully!';
|
||||
this.snackBar.open(message, 'Close', { duration: res?.rollbackTransaction ? 4000 : 3000 });
|
||||
this.dialogRef.close(true);
|
||||
},
|
||||
error: (err) => {
|
||||
|
||||
Reference in New Issue
Block a user