Chore: Eslint v9
Chore: Angular Zoneless Chore: Removed Angular-Hotkeys dependency Fix: Localization works properly now Chore: Using Material 3 theme now Chore: Removed toaster service to use snackbar directly Fix: F2 Date working on all components now
This commit is contained in:
1 parent
c07c79ffda
commit
336a8f59c5
94 files changed
+846
-1030
No files matched your search
@@ -29,7 +29,7 @@ import { BehaviorSubject } from 'rxjs';
|
||||
import { environment } from '../app.environment';
|
||||
import { AuthService } from '../auth/auth.service';
|
||||
import { AccountType } from '../core/account-type';
|
||||
import { ToasterService } from '../core/toaster.service';
|
||||
import { MatSnackBar } from '@angular/material/snack-bar';
|
||||
import { ConfirmDialogComponent } from '../shared/confirm-dialog/confirm-dialog.component';
|
||||
|
||||
import { LockDataSource } from './lock-datasource';
|
||||
@@ -115,7 +115,7 @@ export class SettingsComponent implements OnInit {
|
||||
private route: ActivatedRoute,
|
||||
private router: Router,
|
||||
private dialog: MatDialog,
|
||||
private toaster: ToasterService,
|
||||
private snackBar: MatSnackBar,
|
||||
public auth: AuthService,
|
||||
private ser: SettingsService,
|
||||
) {
|
||||
@@ -243,10 +243,10 @@ export class SettingsComponent implements OnInit {
|
||||
this.ser.setLockInformation(item).subscribe({
|
||||
next: (result) => {
|
||||
this.showLockInformation(result);
|
||||
this.toaster.show('Success', 'Lock information Updated');
|
||||
this.snackBar.open('Lock information Updated', 'Success');
|
||||
},
|
||||
error: (error) => {
|
||||
this.toaster.show('Danger', error);
|
||||
this.snackBar.open(error, 'Danger');
|
||||
},
|
||||
});
|
||||
}
|
||||
@@ -277,10 +277,10 @@ export class SettingsComponent implements OnInit {
|
||||
rebaseData(rebaseDate: string) {
|
||||
this.ser.rebaseDatabase(rebaseDate).subscribe({
|
||||
next: () => {
|
||||
this.toaster.show('Success', 'Data has been rebased!');
|
||||
this.snackBar.open('Data has been rebased!', 'Success');
|
||||
},
|
||||
error: (error) => {
|
||||
this.toaster.show('Danger', error);
|
||||
this.snackBar.open(error, 'Danger');
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user