Chore: Check for deprecations using eslint plugin
Chore: environment file replacement stopped. Chore: All components are now standalone and removed all modules Chore: App routing is now in app.routes and similarly for all submodules Chore: Http interceptors are now functional and split refresh interceptor into a separate one.
This commit is contained in:
1 parent
b6bb3dbcfd
commit
4571b31fc0
309 files changed
+3897
-5222
No files matched your search
@@ -1,6 +1,11 @@
|
||||
import { Component } from '@angular/core';
|
||||
import { FormControl, FormGroup } from '@angular/forms';
|
||||
import { MatDatepicker } from '@angular/material/datepicker';
|
||||
import { FormControl, FormGroup, ReactiveFormsModule } from '@angular/forms';
|
||||
import { MatButton, MatAnchor } from '@angular/material/button';
|
||||
import { MatCard, MatCardContent } from '@angular/material/card';
|
||||
import { MatDatepicker, MatDatepickerInput, MatDatepickerToggle } from '@angular/material/datepicker';
|
||||
import { MatFormField, MatLabel, MatSuffix } from '@angular/material/form-field';
|
||||
import { MatInput } from '@angular/material/input';
|
||||
import { MatTabGroup, MatTab } from '@angular/material/tabs';
|
||||
import moment from 'moment';
|
||||
import { Moment } from 'moment';
|
||||
|
||||
@@ -12,6 +17,23 @@ import { EmployeeFunctionsService } from './employee-functions.service';
|
||||
selector: 'app-employee-functions',
|
||||
templateUrl: './employee-functions.component.html',
|
||||
styleUrls: ['./employee-functions.component.css'],
|
||||
standalone: true,
|
||||
imports: [
|
||||
MatTabGroup,
|
||||
MatTab,
|
||||
MatCard,
|
||||
MatCardContent,
|
||||
ReactiveFormsModule,
|
||||
MatFormField,
|
||||
MatLabel,
|
||||
MatInput,
|
||||
MatDatepickerInput,
|
||||
MatDatepickerToggle,
|
||||
MatSuffix,
|
||||
MatDatepicker,
|
||||
MatButton,
|
||||
MatAnchor,
|
||||
],
|
||||
})
|
||||
export class EmployeeFunctionsComponent {
|
||||
creditSalaryForm: FormGroup<{
|
||||
@@ -61,14 +83,14 @@ export class EmployeeFunctionsComponent {
|
||||
this.toaster.show('Danger', 'Please choose a valid date.');
|
||||
return;
|
||||
}
|
||||
this.ser.creditSalary(date).subscribe(
|
||||
() => {
|
||||
this.ser.creditSalary(date).subscribe({
|
||||
next: () => {
|
||||
this.toaster.show('Success', 'Salaries Credited');
|
||||
},
|
||||
(error) => {
|
||||
error: (error) => {
|
||||
this.toaster.show('Danger', error);
|
||||
},
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
attendanceRecordUrl() {
|
||||
@@ -100,13 +122,13 @@ export class EmployeeFunctionsComponent {
|
||||
this.toaster.show('Danger', 'Please choose a file first!');
|
||||
return;
|
||||
}
|
||||
this.ser.uploadFingerprints(this.fingerprintFile).subscribe(
|
||||
() => {
|
||||
this.ser.uploadFingerprints(this.fingerprintFile).subscribe({
|
||||
next: () => {
|
||||
this.toaster.show('Success', 'Fingerprints uploaded');
|
||||
},
|
||||
(error) => {
|
||||
error: (error) => {
|
||||
this.toaster.show('Danger', error);
|
||||
},
|
||||
);
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user