26 lines
843 B
TypeScript
26 lines
843 B
TypeScript
/**
|
|
* Copyright since 2025 Mifos Initiative
|
|
*
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
*/
|
|
|
|
import { Injectable, inject } from '@angular/core';
|
|
import { Resolve } from '@angular/router';
|
|
import { Observable } from 'rxjs';
|
|
import { SavingsService } from 'app/savings/savings.service';
|
|
|
|
/**
|
|
* Resolves all savings account Nominee/Digital-Feature edits currently awaiting checker approval,
|
|
* for the Pending Savings Account Edits screen.
|
|
*/
|
|
@Injectable()
|
|
export class GetPendingSavingsAccountEdits implements Resolve<any> {
|
|
private savingsService = inject(SavingsService);
|
|
|
|
resolve(): Observable<any> {
|
|
return this.savingsService.getAllPendingSavingsAccountEdits();
|
|
}
|
|
}
|