diff --git a/src/portal/src/app/project/repository/artifact/artifact-tag/artifact-tag.component.ts b/src/portal/src/app/project/repository/artifact/artifact-tag/artifact-tag.component.ts index 46c56a776..40a3e7722 100644 --- a/src/portal/src/app/project/repository/artifact/artifact-tag/artifact-tag.component.ts +++ b/src/portal/src/app/project/repository/artifact/artifact-tag/artifact-tag.component.ts @@ -21,7 +21,13 @@ import { UserPermissionService, USERSTATICPERMISSION } from "../../../../../lib/services"; import { ClrDatagridStateInterface } from '@clr/angular'; -import { DEFAULT_PAGE_SIZE, calculatePage, dbEncodeURIComponent } from '../../../../../lib/utils/utils'; +import { + DEFAULT_PAGE_SIZE, + calculatePage, + dbEncodeURIComponent, + doFiltering, + doSorting +} from '../../../../../lib/utils/utils'; import { AppConfigService } from "../../../../services/app-config.service"; class InitTag { @@ -130,6 +136,9 @@ export class ArtifactTagComponent implements OnInit, OnDestroy { } } this.currentTags = res.body; + // Do customising filtering and sorting + this.currentTags = doFiltering(this.currentTags, state); + this.currentTags = doSorting(this.currentTags, state); }, error => { this.errorHandlerService.error(error); }); diff --git a/src/portal/src/app/project/repository/repository-gridview.component.html b/src/portal/src/app/project/repository/repository-gridview.component.html index 223ecb3e3..a021769ba 100644 --- a/src/portal/src/app/project/repository/repository-gridview.component.html +++ b/src/portal/src/app/project/repository/repository-gridview.component.html @@ -25,11 +25,9 @@
- - {{'REPOSITORY.NAME' | translate}} + {{'REPOSITORY.NAME' | translate}} {{'REPOSITORY.ARTIFACTS_COUNT' | translate}} {{'REPOSITORY.PULL_COUNT' | translate}} {{'REPOSITORY.PLACEHOLDER' | translate }} diff --git a/src/portal/src/app/project/repository/repository-gridview.component.ts b/src/portal/src/app/project/repository/repository-gridview.component.ts index 9d96ee9ba..7c09613cf 100644 --- a/src/portal/src/app/project/repository/repository-gridview.component.ts +++ b/src/portal/src/app/project/repository/repository-gridview.component.ts @@ -24,7 +24,14 @@ import { UserPermissionService, USERSTATICPERMISSION } from "../../../lib/services"; import { FilterComponent } from "../../../lib/components/filter/filter.component"; -import { calculatePage, clone, DEFAULT_PAGE_SIZE, dbEncodeURIComponent } from "../../../lib/utils/utils"; +import { + calculatePage, + clone, + DEFAULT_PAGE_SIZE, + dbEncodeURIComponent, + doFiltering, + doSorting +} from "../../../lib/utils/utils"; import { IServiceConfig, SERVICE_CONFIG } from "../../../lib/entities/service.config"; import { ErrorHandler } from "../../../lib/utils/error-handler"; import { ConfirmationButtons, ConfirmationState, ConfirmationTargets } from "../../../lib/entities/shared.const"; @@ -372,7 +379,9 @@ export class RepositoryGridviewComponent implements OnChanges, OnInit, OnDestroy this.totalCount = +repo.headers.get('x-total-count'); this.repositories = repo.body; - + // Do customising filtering and sorting + this.repositories = doFiltering(this.repositories, state); + this.repositories = doSorting(this.repositories, state); this.signedCon = {}; this.loading = false; }, error => {