@@ -2,19 +2,13 @@ import { AsyncPipe } from '@angular/common';
22import {
33 ChangeDetectionStrategy ,
44 Component ,
5- Inject ,
65 OnInit ,
76} from '@angular/core' ;
87import {
98 ActivatedRoute ,
109 Router ,
11- RouterLink ,
1210 RouterOutlet ,
1311} from '@angular/router' ;
14- import {
15- APP_CONFIG ,
16- AppConfig ,
17- } from '@dspace/config/app-config.interface' ;
1812import { AuthService } from '@dspace/core/auth/auth.service' ;
1913import { DSONameService } from '@dspace/core/breadcrumbs/dso-name.service' ;
2014import { SortOptions } from '@dspace/core/cache/models/sort-options.model' ;
@@ -69,7 +63,6 @@ import { VarDirective } from '../shared/utils/var.directive';
6963 ComcolPageLogoComponent ,
7064 DsoEditMenuComponent ,
7165 ErrorComponent ,
72- RouterLink ,
7366 RouterOutlet ,
7467 ThemedComcolPageBrowseByComponent ,
7568 ThemedComcolPageContentComponent ,
@@ -95,18 +88,12 @@ export class CollectionPageComponent implements OnInit {
9588 */
9689 collectionPageRoute$ : Observable < string > ;
9790
98- /**
99- * Whether to show a submit button for users on the collection page.
100- */
101- showSubmitButton$ : Observable < boolean > ;
102-
10391 constructor (
10492 protected route : ActivatedRoute ,
10593 protected router : Router ,
10694 protected authService : AuthService ,
10795 protected authorizationDataService : AuthorizationDataService ,
10896 public dsoNameService : DSONameService ,
109- @Inject ( APP_CONFIG ) protected appConfig : AppConfig ,
11097 ) {
11198 }
11299
@@ -127,10 +114,6 @@ export class CollectionPageComponent implements OnInit {
127114 getAllSucceededRemoteDataPayload ( ) ,
128115 map ( ( collection ) => getCollectionPageRoute ( collection . id ) ) ,
129116 ) ;
130-
131- this . showSubmitButton$ = this . authorizationDataService . isAuthorized ( FeatureID . CanSubmit ) . pipe (
132- map ( authorized => authorized && this . appConfig . collection . showSubmitButton ) ,
133- ) ;
134117 }
135118
136119 isNotEmpty ( object : any ) {
0 commit comments