Skip to content

Commit

Permalink
[DSC-1434] fix configuration issue ('link' property removed)
Browse files Browse the repository at this point in the history
  • Loading branch information
davide-negretti committed Dec 21, 2023
1 parent bb002aa commit 4540186
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 12 deletions.
1 change: 0 additions & 1 deletion src/app/social/social.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ export class SocialComponent implements OnInit {
this.showPlusButton = this.socialService.configuration.showPlusButton;
this.showCounters = this.socialService.configuration.showCounters;
this.title = this.socialService.configuration.title;
this.url = this.socialService.link;
this.socialService.initializeAddToAnyScript();
this.showOnCurrentRoute$ = this.socialService.showOnCurrentRoute$;
}
Expand Down
8 changes: 0 additions & 8 deletions src/app/social/social.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,6 @@ export class SocialService {
return environment.addToAnyPlugin;
}

/**
* Returns the homepage link to be used by AddToAny.
* If no link is provided in the configuration then the current page url will be used.
*/
get link(): string {
return environment.addToAnyPlugin.link ?? null;
}

/**
* Import the AddToAny JavaScript
*/
Expand Down
1 change: 0 additions & 1 deletion src/config/add-to-any-plugin-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,4 @@ export interface AddToAnyPluginConfig extends Config {
buttons: string[];
showPlusButton: boolean;
showCounters: boolean;
link?: string;
}
2 changes: 0 additions & 2 deletions src/config/default-app-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -646,8 +646,6 @@ export class DefaultAppConfig implements AppConfig {
showPlusButton: true,
showCounters: true,
title: 'DSpace CRIS 7 demo',
// link: 'https://dspacecris7.4science.cloud/',
// The link to be shown in the shared post, if different from document.location.origin
};

metricVisualizationConfig: MetricVisualizationConfig[] = [
Expand Down

0 comments on commit 4540186

Please sign in to comment.