Skip to content

Commit

Permalink
Merged in DSC-1434-update-twitter-button (pull request #1128)
Browse files Browse the repository at this point in the history
[DSC-1434] feature: update twitter to x button

Approved-by: Davide Negretti
  • Loading branch information
vNovski authored and Davide Negretti committed Dec 21, 2023
2 parents 4812f18 + 4540186 commit dc07471
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 13 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;
}
4 changes: 1 addition & 3 deletions src/config/default-app-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -642,12 +642,10 @@ export class DefaultAppConfig implements AppConfig {
addToAnyPlugin: AddToAnyPluginConfig = {
scriptUrl: 'https://static.addtoany.com/menu/page.js',
socialNetworksEnabled: false,
buttons: ['facebook', 'twitter', 'linkedin', 'email', 'copy_link'],
buttons: ['facebook', 'x', 'linkedin', 'email', 'copy_link'],
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 dc07471

Please sign in to comment.