diff --git a/package.json b/package.json index 318efe5..a1f8603 100644 --- a/package.json +++ b/package.json @@ -28,6 +28,12 @@ "@fortawesome/free-brands-svg-icons": "^6.1.1", "@fortawesome/free-regular-svg-icons": "^6.1.1", "@fortawesome/free-solid-svg-icons": "^6.1.1", + "@ngrx/component-store": "^14.3.1", + "@ngrx/effects": "^14.3.1", + "@ngrx/entity": "^14.3.1", + "@ngrx/router-store": "^14.3.1", + "@ngrx/store": "^14.3.1", + "@ngrx/store-devtools": "^14.3.1", "ace-builds": "^1.4.14", "ag-grid-angular": "^28.1.1", "ag-grid-community": "^28.1.1", diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 22b16af..22652ca 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -24,6 +24,9 @@ import { LoadingCircleModule } from './components/loading-circle/loading-circle. import { DialogKioskComponent } from './pages/dialogs/dialog-kiosk/dialog-kiosk.component'; // import { MatDialogModule } from '@angular/material/dialog'; import { NgxUplotModule } from 'ngx-uplot'; +import { StoreModule } from '@ngrx/store'; +import { reducers, metaReducers } from './reducers'; +import { EffectsModule } from '@ngrx/effects'; @NgModule({ declarations: [ AppComponent, @@ -47,6 +50,10 @@ import { NgxUplotModule } from 'ngx-uplot'; ChHelpModule, PopupTextModule, NgxUplotModule, + StoreModule.forRoot(reducers, { + metaReducers + }), + EffectsModule.forRoot([]), // MatDialogModule, // MatButtonModule, ], diff --git a/src/app/components/login-form/login-form.component.html b/src/app/components/login-form/login-form.component.html index 2948be5..4d08211 100644 --- a/src/app/components/login-form/login-form.component.html +++ b/src/app/components/login-form/login-form.component.html @@ -25,9 +25,16 @@
- + @@ -129,7 +136,6 @@ mat-raised-button (click)="isAccess = !isAccess" cdkFocusInitial - [disabled]="!checkIfHasOneConnect()" > cancel @@ -137,7 +143,7 @@ style="margin-right: 0.5rem" mat-raised-button (click)="testToConnect()" - [disabled]="!(dbServer.selectedOptions.selected[0])" + [disabled]="!dbServer.selectedOptions.selected[0]" color="primary" cdkFocusInitial > @@ -147,7 +153,7 @@ mat-raised-button (click)="removeConnection()" color="accent" - [disabled]="!(dbServer.selectedOptions.selected[0])" + [disabled]="!dbServer.selectedOptions.selected[0]" cdkFocusInitial > Remove connection @@ -155,7 +161,12 @@