@@ -3,16 +3,16 @@ import {Component, inject} from '@angular/core';
3
3
import { FormControl , FormGroup , ReactiveFormsModule } from '@angular/forms' ;
4
4
import { RouterLink } from '@angular/router' ;
5
5
import { FaIconComponent } from '@fortawesome/angular-fontawesome' ;
6
- import { faBox , faDownload , faLightbulb , faMagnifyingGlass } from '@fortawesome/free-solid-svg-icons' ;
6
+ import { faBox , faLightbulb , faMagnifyingGlass } from '@fortawesome/free-solid-svg-icons' ;
7
7
import { combineLatest , map , startWith } from 'rxjs' ;
8
8
import { UuidComponent } from '../../components/uuid' ;
9
9
import { ArtifactsService } from '../../services/artifacts.service' ;
10
10
import { ArtifactsDownloadCountComponent , ArtifactsDownloadedByComponent } from '../components' ;
11
- import { faDocker } from '@fortawesome/free-brands-svg-icons' ;
12
11
import { AutotrimDirective } from '../../directives/autotrim.directive' ;
13
12
import { getRemoteEnvironment } from '../../../env/remote' ;
14
13
import { fromPromise } from 'rxjs/internal/observable/innerFrom' ;
15
14
import { OrganizationService } from '../../services/organization.service' ;
15
+ import { RequireRoleDirective } from '../../directives/required-role.directive' ;
16
16
17
17
@Component ( {
18
18
selector : 'app-artifacts' ,
@@ -25,6 +25,7 @@ import {OrganizationService} from '../../services/organization.service';
25
25
ArtifactsDownloadCountComponent ,
26
26
ArtifactsDownloadedByComponent ,
27
27
AutotrimDirective ,
28
+ RequireRoleDirective ,
28
29
] ,
29
30
templateUrl : './artifacts.component.html' ,
30
31
} )
@@ -33,7 +34,6 @@ export class ArtifactsComponent {
33
34
34
35
protected readonly faMagnifyingGlass = faMagnifyingGlass ;
35
36
protected readonly faBox = faBox ;
36
- protected readonly faDownload = faDownload ;
37
37
38
38
protected readonly filterForm = new FormGroup ( {
39
39
search : new FormControl ( '' ) ,
@@ -48,7 +48,6 @@ export class ArtifactsComponent {
48
48
artifacts . filter ( ( it ) => ! formValue . search || it . name . toLowerCase ( ) . includes ( formValue . search . toLowerCase ( ) ) )
49
49
)
50
50
) ;
51
- protected readonly faDocker = faDocker ;
52
51
protected readonly faLightbulb = faLightbulb ;
53
52
54
53
private readonly organizationService = inject ( OrganizationService ) ;
0 commit comments