Skip to content

Commit

Permalink
Fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
abelgomez committed Oct 9, 2024
1 parent d035807 commit 6d66fb4
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ import { TranslateModule } from '@ngx-translate/core';
import { ConfigurationDataService } from 'src/app/core/data/configuration-data.service';
import { ConfigurationProperty } from 'src/app/core/shared/configuration-property.model';
import { Item } from 'src/app/core/shared/item.model';
import { getFirstCompletedRemoteData, getRemoteDataPayload } from 'src/app/core/shared/operators';
import {
getFirstCompletedRemoteData,
getRemoteDataPayload,
} from 'src/app/core/shared/operators';
import { MetadataFieldWrapperComponent } from 'src/app/shared/metadata-field-wrapper/metadata-field-wrapper.component';
import { AppConfig } from 'src/config/app-config.interface';

Expand Down Expand Up @@ -59,19 +62,19 @@ export class ItemPageCcLicenseFieldComponent implements OnInit {
private configService: ConfigurationDataService,
) {
this.configService.findByPropertyName('cc.license.uri').pipe(
getFirstCompletedRemoteData(),
getRemoteDataPayload()
).subscribe((remoteData : ConfigurationProperty) => {
this.ccLicenseNameField = remoteData.values && remoteData.values.length > 0 ? remoteData.values[0] : 'dc.rights.uri';
}
getFirstCompletedRemoteData(),
getRemoteDataPayload(),
).subscribe((remoteData: ConfigurationProperty) => {
this.ccLicenseNameField = remoteData.values && remoteData.values.length > 0 ? remoteData.values[0] : 'dc.rights.uri';
},
);
this.configService.findByPropertyName('dc.rights').pipe(
getFirstCompletedRemoteData(),
getRemoteDataPayload()
).subscribe((remoteData : ConfigurationProperty) => {
getRemoteDataPayload(),
).subscribe((remoteData: ConfigurationProperty) => {
this.ccLicenseNameField = remoteData.values && remoteData.values.length > 0 ? remoteData.values[0] : 'dc.rights';
}
);
},
);
}

ngOnInit() {
Expand Down
2 changes: 1 addition & 1 deletion src/config/app-config.interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import { CollectionPageConfig } from './collection-page-config.interface';
import { CommunityListConfig } from './community-list-config.interface';
import { CommunityPageConfig } from './community-page-config.interface';
import { Config } from './config.interface';
import { CreativeCommonsLicenseConfig } from './creative-commons-license-config.interface';
import { DiscoverySortConfig } from './discovery-sort.config';
import { FilterVocabularyConfig } from './filter-vocabulary-config';
import { FormConfig } from './form-config.interfaces';
Expand All @@ -33,7 +34,6 @@ import { SubmissionConfig } from './submission-config.interface';
import { SuggestionConfig } from './suggestion-config.interfaces';
import { ThemeConfig } from './theme.config';
import { UIServerConfig } from './ui-server-config.interface';
import { CreativeCommonsLicenseConfig } from './creative-commons-license-config.interface';


interface AppConfig extends Config {
Expand Down

0 comments on commit 6d66fb4

Please sign in to comment.