|
|
@@ -6,39 +6,20 @@ import { Component, OnInit } from '@angular/core'; |
|
|
|
styleUrls: ['./check-status.component.scss'] |
|
|
|
}) |
|
|
|
export class CheckStatusComponent implements OnInit { |
|
|
|
applicationId: string = '398248899'; |
|
|
|
|
|
|
|
|
|
|
|
error?: { |
|
|
|
header: string, |
|
|
|
message: string, |
|
|
|
status: string, |
|
|
|
assignedTo: string, |
|
|
|
type: 'SUCCESS' | 'WARNING' | 'DANGER', |
|
|
|
}; |
|
|
|
|
|
|
|
constructor() { } |
|
|
|
|
|
|
|
ngOnInit(): void { |
|
|
|
this.error = { |
|
|
|
status: 'In Progress', |
|
|
|
assignedTo: 'Mr Miyagi', |
|
|
|
type: 'WARNING' |
|
|
|
}; |
|
|
|
} |
|
|
|
|
|
|
|
checkStatus() { |
|
|
|
if (this.applicationId === '398248899') { |
|
|
|
this.error = { |
|
|
|
header: 'Approved', |
|
|
|
message: 'Your application has been approved, please view the notification to continue futher in the process', |
|
|
|
type: 'SUCCESS' |
|
|
|
}; |
|
|
|
} else if (this.applicationId === '100') { |
|
|
|
this.error = { |
|
|
|
header: 'Pending', |
|
|
|
message: 'You\'ll be notified when there is a change in the status', |
|
|
|
type: 'WARNING' |
|
|
|
}; |
|
|
|
} else { |
|
|
|
this.error = { |
|
|
|
header: 'Rejected', |
|
|
|
message: 'Please view the notifications to get more details regarding the rejection', |
|
|
|
type: 'DANGER' |
|
|
|
}; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |