Skip to content

Commit 585b4c5

Browse files
davide-negrettivNovski
authored andcommitted
[DSC-1434] fix configuration issue ('link' property removed)
1 parent 02f9dc9 commit 585b4c5

4 files changed

Lines changed: 0 additions & 12 deletions

File tree

src/app/social/social.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ export class SocialComponent implements OnInit {
3636
this.showPlusButton = this.socialService.configuration.showPlusButton;
3737
this.showCounters = this.socialService.configuration.showCounters;
3838
this.title = this.socialService.configuration.title;
39-
this.url = this.socialService.link;
4039
this.socialService.initializeAddToAnyScript();
4140
this.showOnCurrentRoute$ = this.socialService.showOnCurrentRoute$;
4241
}

src/app/social/social.service.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,6 @@ export class SocialService {
5454
return environment.addToAnyPlugin;
5555
}
5656

57-
/**
58-
* Returns the homepage link to be used by AddToAny.
59-
* If no link is provided in the configuration then the current page url will be used.
60-
*/
61-
get link(): string {
62-
return environment.addToAnyPlugin.link ?? null;
63-
}
64-
6557
/**
6658
* Import the AddToAny JavaScript
6759
*/

src/config/add-to-any-plugin-config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,4 @@ export interface AddToAnyPluginConfig extends Config {
88
buttons: string[];
99
showPlusButton: boolean;
1010
showCounters: boolean;
11-
link?: string;
1211
}

src/config/default-app-config.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -643,8 +643,6 @@ export class DefaultAppConfig implements AppConfig {
643643
showPlusButton: true,
644644
showCounters: true,
645645
title: 'DSpace CRIS 7 demo',
646-
// link: 'https://dspacecris7.4science.cloud/',
647-
// The link to be shown in the shared post, if different from document.location.origin
648646
};
649647

650648
metricVisualizationConfig: MetricVisualizationConfig[] = [

0 commit comments

Comments
 (0)