remove withSort, rename column to sortByKey
This commit is contained in:
parent
62fa054697
commit
7483c2b49b
@ -30,8 +30,7 @@ export class DefaultColorsScreenComponent extends ListingComponent<ListItem> imp
|
||||
readonly tableColumnConfigs: TableColumnConfig<ListItem>[] = [
|
||||
{
|
||||
label: _('default-colors-screen.table-col-names.key'),
|
||||
withSort: true,
|
||||
column: 'key'
|
||||
sortByKey: 'key'
|
||||
},
|
||||
{ label: _('default-colors-screen.table-col-names.color'), class: 'flex-center' }
|
||||
];
|
||||
|
||||
@ -34,13 +34,11 @@ export class DictionaryListingScreenComponent extends ListingComponent<TypeValue
|
||||
readonly tableColumnConfigs: TableColumnConfig<TypeValueWrapper>[] = [
|
||||
{
|
||||
label: _('dictionary-listing.table-col-names.type'),
|
||||
withSort: true,
|
||||
column: 'label'
|
||||
sortByKey: 'label'
|
||||
},
|
||||
{
|
||||
label: _('dictionary-listing.table-col-names.order-of-importance'),
|
||||
withSort: true,
|
||||
column: 'rank',
|
||||
sortByKey: 'rank',
|
||||
class: 'flex-center'
|
||||
},
|
||||
{
|
||||
|
||||
@ -25,14 +25,12 @@ export class DossierAttributesListingScreenComponent extends ListingComponent<Do
|
||||
readonly tableColumnConfigs: TableColumnConfig<DossierAttributeConfig>[] = [
|
||||
{
|
||||
label: _('dossier-attributes-listing.table-col-names.label'),
|
||||
withSort: true,
|
||||
column: 'label'
|
||||
sortByKey: 'label'
|
||||
},
|
||||
{ label: _('dossier-attributes-listing.table-col-names.placeholder') },
|
||||
{
|
||||
label: _('dossier-attributes-listing.table-col-names.type'),
|
||||
withSort: true,
|
||||
column: 'type'
|
||||
sortByKey: 'type'
|
||||
}
|
||||
];
|
||||
|
||||
|
||||
@ -24,19 +24,16 @@ export class DossierTemplatesListingScreenComponent extends ListingComponent<Dos
|
||||
tableColumnConfigs: TableColumnConfig<DossierTemplateModelWrapper>[] = [
|
||||
{
|
||||
label: _('dossier-templates-listing.table-col-names.name'),
|
||||
withSort: true,
|
||||
column: 'name'
|
||||
sortByKey: 'name'
|
||||
},
|
||||
{ label: _('dossier-templates-listing.table-col-names.created-by'), class: 'user-column' },
|
||||
{
|
||||
label: _('dossier-templates-listing.table-col-names.created-on'),
|
||||
withSort: true,
|
||||
column: 'dateAdded'
|
||||
sortByKey: 'dateAdded'
|
||||
},
|
||||
{
|
||||
label: _('dossier-templates-listing.table-col-names.modified-on'),
|
||||
withSort: true,
|
||||
column: 'dateModified'
|
||||
sortByKey: 'dateModified'
|
||||
}
|
||||
];
|
||||
|
||||
|
||||
@ -25,18 +25,15 @@ export class FileAttributesListingScreenComponent extends ListingComponent<FileA
|
||||
readonly tableColumnConfigs: TableColumnConfig<FileAttributeConfig>[] = [
|
||||
{
|
||||
label: _('file-attributes-listing.table-col-names.name'),
|
||||
withSort: true,
|
||||
column: 'label'
|
||||
sortByKey: 'label'
|
||||
},
|
||||
{
|
||||
label: _('file-attributes-listing.table-col-names.type'),
|
||||
withSort: true,
|
||||
column: 'type'
|
||||
sortByKey: 'type'
|
||||
},
|
||||
{
|
||||
label: _('file-attributes-listing.table-col-names.read-only'),
|
||||
withSort: true,
|
||||
column: 'editable',
|
||||
sortByKey: 'editable',
|
||||
class: 'flex-center'
|
||||
},
|
||||
{ label: _('file-attributes-listing.table-col-names.csv-column') },
|
||||
|
||||
@ -32,8 +32,7 @@ export class TrashScreenComponent extends ListingComponent<DossierListItem> impl
|
||||
readonly tableColumnConfigs: TableColumnConfig<DossierListItem>[] = [
|
||||
{
|
||||
label: _('trash.table-col-names.name'),
|
||||
withSort: true,
|
||||
column: 'dossierName'
|
||||
sortByKey: 'dossierName'
|
||||
},
|
||||
{
|
||||
label: _('trash.table-col-names.owner'),
|
||||
@ -41,13 +40,11 @@ export class TrashScreenComponent extends ListingComponent<DossierListItem> impl
|
||||
},
|
||||
{
|
||||
label: _('trash.table-col-names.deleted-on'),
|
||||
withSort: true,
|
||||
column: 'softDeletedTime'
|
||||
sortByKey: 'softDeletedTime'
|
||||
},
|
||||
{
|
||||
label: _('trash.table-col-names.time-to-restore'),
|
||||
withSort: true,
|
||||
column: 'softDeletedTime'
|
||||
sortByKey: 'softDeletedTime'
|
||||
}
|
||||
];
|
||||
protected readonly _primaryKey = 'dossierName';
|
||||
|
||||
@ -55,8 +55,7 @@ export class DossierListingScreenComponent
|
||||
readonly tableColumnConfigs: TableColumnConfig<DossierWrapper>[] = [
|
||||
{
|
||||
label: _('dossier-listing.table-col-names.name'),
|
||||
withSort: true,
|
||||
column: 'dossierName'
|
||||
sortByKey: 'dossierName'
|
||||
},
|
||||
{
|
||||
label: _('dossier-listing.table-col-names.needs-work')
|
||||
|
||||
@ -54,33 +54,28 @@ export class DossierOverviewScreenComponent extends ListingComponent<FileStatusW
|
||||
readonly tableColumnConfigs: TableColumnConfig<FileStatusWrapper>[] = [
|
||||
{
|
||||
label: _('dossier-overview.table-col-names.name'),
|
||||
withSort: true,
|
||||
column: 'filename'
|
||||
sortByKey: 'filename'
|
||||
},
|
||||
{
|
||||
label: _('dossier-overview.table-col-names.added-on'),
|
||||
withSort: true,
|
||||
column: 'added'
|
||||
sortByKey: 'added'
|
||||
},
|
||||
{
|
||||
label: _('dossier-overview.table-col-names.needs-work')
|
||||
},
|
||||
{
|
||||
label: _('dossier-overview.table-col-names.assigned-to'),
|
||||
withSort: true,
|
||||
class: 'user-column',
|
||||
column: 'reviewerName'
|
||||
sortByKey: 'reviewerName'
|
||||
},
|
||||
{
|
||||
label: _('dossier-overview.table-col-names.pages'),
|
||||
withSort: true,
|
||||
column: 'pages'
|
||||
sortByKey: 'pages'
|
||||
},
|
||||
{
|
||||
label: _('dossier-overview.table-col-names.status'),
|
||||
withSort: true,
|
||||
class: 'flex-end',
|
||||
column: 'statusSort'
|
||||
sortByKey: 'statusSort'
|
||||
}
|
||||
];
|
||||
collapsedDetails = false;
|
||||
|
||||
@ -29,12 +29,11 @@
|
||||
<iqser-table-column-name
|
||||
*ngFor="let config of tableColumnConfigs"
|
||||
[class]="config.class"
|
||||
[column]="config.column"
|
||||
[sortByKey]="config.sortByKey"
|
||||
[label]="config.label | translate"
|
||||
[leftIcon]="config.leftIcon"
|
||||
[rightIconTooltip]="config.rightIconTooltip"
|
||||
[rightIcon]="config.rightIcon"
|
||||
[withSort]="config.withSort"
|
||||
></iqser-table-column-name>
|
||||
|
||||
<div *ngIf="hasEmptyColumn"></div>
|
||||
|
||||
@ -1 +1 @@
|
||||
Subproject commit c552ed2e21d3df6fbcfe842ae85ac5a75006ab85
|
||||
Subproject commit 6811739c7967a5f9fd8bb62f2b62e47e14ce0430
|
||||
Loading…
x
Reference in New Issue
Block a user