RED-3800 - fixed icon paths.
This commit is contained in:
parent
ea1c5f31c5
commit
2f443441f5
@ -9,6 +9,7 @@ import { PermissionsService } from '@services/permissions.service';
|
||||
import { REDAnnotationManager } from '../../pdf-viewer/services/annotation-manager.service';
|
||||
import { AnnotationActionsService } from './annotation-actions.service';
|
||||
import { FilePreviewStateService } from './file-preview-state.service';
|
||||
import { UI_ROOT_PATH_FN } from '@common-ui/utils';
|
||||
|
||||
@Injectable()
|
||||
export class PdfAnnotationActionsService {
|
||||
@ -20,6 +21,7 @@ export class PdfAnnotationActionsService {
|
||||
readonly #iqserPermissionsService = inject(IqserPermissionsService);
|
||||
readonly #annotationManager = inject(REDAnnotationManager);
|
||||
readonly #isDocumine = getConfig().IS_DOCUMINE;
|
||||
readonly #convertPath = inject(UI_ROOT_PATH_FN);
|
||||
|
||||
get(annotations: AnnotationWrapper[], annotationChangesAllowed: boolean): IHeaderElement[] {
|
||||
const availableActions: IHeaderElement[] = [];
|
||||
@ -105,7 +107,7 @@ export class PdfAnnotationActionsService {
|
||||
#getButton(icon: string, title: string, action: () => void | Promise<void>): IHeaderElement {
|
||||
return {
|
||||
type: 'actionButton',
|
||||
img: `ui/assets/icons/general/${icon}.svg`,
|
||||
img: this.#convertPath(`/assets/icons/general/${icon}.svg`),
|
||||
title: this.#translateService.instant(title),
|
||||
onClick: () => this.#ngZone.run(async () => action()),
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user