Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Update text and position of Subscribe to calendar label

Klaus Zanders48d82f28e152
diff --git a/config/locales/js-en.yml b/config/locales/js-en.yml
index 05f66e08fc3..a79646e4035 100644
--- a/config/locales/js-en.yml
+++ b/config/locales/js-en.yml
@@ -1157,7 +1157,7 @@ en:
save_as: "Save as"
export: "Export"
visibility_settings: "Visibility settings"
- share_calendar: "Subscribe to iCalendar"
+ share_calendar: "Subscribe to calendar"
page_settings: "Rename view"
delete: "Delete"
filter: "Filter"
diff --git a/frontend/src/app/shared/components/op-context-menu/handlers/op-settings-dropdown-menu.directive.ts b/frontend/src/app/shared/components/op-context-menu/handlers/op-settings-dropdown-menu.directive.ts
index 9b9cbbf6fad..411675daa2f 100644
--- a/frontend/src/app/shared/components/op-context-menu/handlers/op-settings-dropdown-menu.directive.ts
+++ b/frontend/src/app/shared/components/op-context-menu/handlers/op-settings-dropdown-menu.directive.ts
@@ -64,7 +64,8 @@ export class OpSettingsMenuDirective extends OpContextMenuTrigger {
private loadingPromise:PromiseLike<any>;
- constructor(readonly elementRef:ElementRef,
+ constructor(
+ readonly elementRef:ElementRef,
readonly opContextMenu:OPContextMenuService,
readonly opModalService:OpModalService,
readonly wpListService:WorkPackagesListService,
@@ -72,7 +73,8 @@ export class OpSettingsMenuDirective extends OpContextMenuTrigger {
readonly states:States,
readonly injector:Injector,
readonly querySpace:IsolatedQuerySpace,
- readonly I18n:I18nService) {
+ readonly I18n:I18nService,
+ ) {
super(elementRef, opContextMenu);
}
@@ -274,6 +276,20 @@ export class OpSettingsMenuDirective extends OpContextMenuTrigger {
return true;
},
},
+ {
+ // Calendar sharing modal
+ hidden: !this.showCalendarSharingOption,
+ disabled: this.authorisationService.cannot('query', 'icalUrl'),
+ linkText: this.I18n.t('js.toolbar.settings.share_calendar'),
+ icon: 'icon-link', // TODO: find sharing icons
+ onClick: () => {
+ if (this.authorisationService.can('query', 'icalUrl')) {
+ this.opModalService.show(QueryGetIcalUrlModalComponent, this.injector);
+ }
+
+ return true;
+ },
+ },
{
// Export query
disabled: this.authorisationService.cannot('work_packages', 'representations'),
@@ -313,20 +329,6 @@ export class OpSettingsMenuDirective extends OpContextMenuTrigger {
icon: 'icon-custom-fields',
onClick: () => false,
},
- {
- // Calendar sharing modal
- hidden: !this.showCalendarSharingOption,
- disabled: this.authorisationService.cannot('query', 'icalUrl'),
- linkText: this.I18n.t('js.toolbar.settings.share_calendar'),
- icon: 'icon-link', // TODO: find sharing icons
- onClick: () => {
- if (this.authorisationService.can('query', 'icalUrl')) {
- this.opModalService.show(QueryGetIcalUrlModalComponent, this.injector);
- }
-
- return true;
- },
- },
];
}
}