WEB-308: fix hardcoded documentation links (#2944)
fix: Add security attributes to all external documentation links Fix:added the missing mapping in env.template.js Removed DocumentationLinkPipe from PipesModule
This commit is contained in:
@@ -10,6 +10,7 @@ import { KeyboardShortcutsDialogComponent } from 'app/shared/keyboard-shortcuts-
|
||||
import { AuthenticationService } from '../../authentication/authentication.service';
|
||||
import { PopoverService } from '../../../configuration-wizard/popover/popover.service';
|
||||
import { ConfigurationWizardService } from '../../../configuration-wizard/configuration-wizard.service';
|
||||
import { DocumentationLinksService } from 'app/shared/services/documentation-links.service';
|
||||
|
||||
/** Custom Imports */
|
||||
import { frequentActivities } from './frequent-activities';
|
||||
@@ -54,6 +55,7 @@ export class SidenavComponent implements OnInit, AfterViewInit {
|
||||
private settingsService = inject(SettingsService);
|
||||
private configurationWizardService = inject(ConfigurationWizardService);
|
||||
private popoverService = inject(PopoverService);
|
||||
private documentationLinks = inject(DocumentationLinksService);
|
||||
|
||||
/** True if sidenav is in collapsed state. */
|
||||
@Input() sidenavCollapsed: boolean;
|
||||
@@ -117,7 +119,7 @@ export class SidenavComponent implements OnInit, AfterViewInit {
|
||||
* Opens Mifos JIRA Wiki page.
|
||||
*/
|
||||
help() {
|
||||
window.open('https://mifosforge.jira.com/wiki/spaces/docs/pages/52035622/User+Manual', '_blank');
|
||||
this.documentationLinks.open('userManual');
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -41,6 +41,7 @@ import { MatIcon } from '@angular/material/icon';
|
||||
import { NotificationsTrayComponent as NotificationsTrayComponent_1 } from '../../../shared/notifications-tray/notifications-tray.component';
|
||||
import { ThemeToggleComponent } from '../../../shared/theme-toggle/theme-toggle.component';
|
||||
import { STANDALONE_SHARED_IMPORTS } from 'app/standalone-shared.module';
|
||||
import { DocumentationLinksService } from 'app/shared/services/documentation-links.service';
|
||||
|
||||
import { environment } from '../../../../environments/environment';
|
||||
|
||||
@@ -75,6 +76,7 @@ export class ToolbarComponent implements OnInit, AfterViewInit, AfterContentChec
|
||||
private configurationWizardService = inject(ConfigurationWizardService);
|
||||
private dialog = inject(MatDialog);
|
||||
private changeDetector = inject(ChangeDetectorRef);
|
||||
private documentationLinks = inject(DocumentationLinksService);
|
||||
|
||||
/* Reference of institution */
|
||||
@ViewChild('institution') institution: ElementRef<any>;
|
||||
@@ -148,7 +150,7 @@ export class ToolbarComponent implements OnInit, AfterViewInit, AfterContentChec
|
||||
* Opens Mifos JIRA Wiki page.
|
||||
*/
|
||||
help() {
|
||||
window.open('https://mifosforge.jira.com/wiki/spaces/docs/pages/52035622/User+Manual', '_blank');
|
||||
this.documentationLinks.open('userManual');
|
||||
}
|
||||
/**
|
||||
* Popover function
|
||||
|
||||
Reference in New Issue
Block a user