Skip to content

Commit fe6fa51

Browse files
vNovskiDavide Negretti
authored andcommitted
Merged in DSC-1434-update-to-x-button (pull request DSpace#1146)
DSC-1434 update to x button Approved-by: Davide Negretti
2 parents a85550c + 585b4c5 commit fe6fa51

4 files changed

Lines changed: 1 addition & 13 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: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -639,12 +639,10 @@ export class DefaultAppConfig implements AppConfig {
639639
addToAnyPlugin: AddToAnyPluginConfig = {
640640
scriptUrl: 'https://static.addtoany.com/menu/page.js',
641641
socialNetworksEnabled: false,
642-
buttons: ['facebook', 'twitter', 'linkedin', 'email', 'copy_link'],
642+
buttons: ['facebook', 'x', 'linkedin', 'email', 'copy_link'],
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)