File tree Expand file tree Collapse file tree
frontend/src/app/components/dashboard/db-table-view Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -41,10 +41,10 @@ import { SelectionModel } from '@angular/cdk/collections';
4141import { TableRowService } from 'src/app/services/table-row.service' ;
4242import { TableStateService } from 'src/app/services/table-state.service' ;
4343import { formatFieldValue } from 'src/app/lib/format-field-value' ;
44+ import { getTableTypes } from 'src/app/lib/setup-table-row-structure' ;
4445import { merge } from 'rxjs' ;
4546import { normalizeTableName } from '../../../lib/normalize'
4647import { tap } from 'rxjs/operators' ;
47- import { getTableTypes } from 'src/app/lib/setup-table-row-structure' ;
4848
4949interface Column {
5050 title : string ,
@@ -163,9 +163,14 @@ export class DbTableViewComponent implements OnInit {
163163 tap ( ( ) => {
164164
165165 const filters = JsonURL . stringify ( this . activeFilters ) ;
166+ const saved_filter = this . route . snapshot . queryParams . saved_filter ;
167+ const dynamic_column = this . route . snapshot . queryParams . dynamic_column ;
168+
166169 this . router . navigate ( [ `/dashboard/${ this . connectionID } /${ this . name } ` ] , {
167170 queryParams : {
168171 filters,
172+ saved_filter,
173+ dynamic_column,
169174 sort_active : this . sort . active ,
170175 sort_direction : this . sort . direction . toUpperCase ( ) ,
171176 page_index : this . paginator . pageIndex ,
Original file line number Diff line number Diff line change 1010 gap : 16px ;
1111}
1212
13+ .saved-filters-list__first-time-button {
14+ background : var (--color-accentedPalette-50 );
15+ border : 1px dashed var (--color-accentedPalette-300 );
16+ transition : background 0.3s ease;
17+ }
18+
19+ .saved-filters-list__first-time-button : hover {
20+ background : var (--color-accentedPalette-100 ) !important ;
21+ }
22+
1323/* .saved-filters-tabs {
1424 --mdc-chip-container-shape-radius: 4px;
1525} */
7282 margin-left : 8px ;
7383}
7484
85+ .dynamic-column-editor ::ng-deep .foreign-key {
86+ display : block;
87+ min-width : 280px ;
88+ margin-bottom : 16px ;
89+ }
90+
91+ .dynamic-column-editor ::ng-deep .foreign-key .mat-mdc-form-field-subscript-wrapper ,
92+ .dynamic-column-editor ::ng-deep .foreign-key .foreign-key__link {
93+ display : none;
94+ }
95+
7596.static-filters {
7697 display : flex;
7798 flex-wrap : wrap;
Original file line number Diff line number Diff line change 22 < app-placeholder-saved-filters *ngIf ="savedFilterData === null "> </ app-placeholder-saved-filters >
33 < div *ngIf ="savedFilterData " class ="saved-filters-list ">
44 < button *ngIf ="accessLevel === 'edit' && savedFilterData?.length === 0 "
5+ class ="saved-filters-list__first-time-button "
56 mat-button type ="button "
67 angulartics2On ="click "
78 angularticsAction ="Saved filters: first time setup is clicked "
You can’t perform that action at this time.
0 commit comments