From ba84afc3df73e6a37a5b4392e088c17ee72506e5 Mon Sep 17 00:00:00 2001 From: Dan Percic Date: Fri, 16 Dec 2022 12:27:18 +0200 Subject: [PATCH] RED-5219: update load all annotations icon --- .../modules/pdf-viewer/services/viewer-header.service.ts | 9 +++++---- .../pdftron-action-load-all-annotations-disabled.svg | 8 ++++++++ .../general/pdftron-action-load-all-annotations.svg | 8 ++++++++ 3 files changed, 21 insertions(+), 4 deletions(-) create mode 100644 apps/red-ui/src/assets/icons/general/pdftron-action-load-all-annotations-disabled.svg create mode 100644 apps/red-ui/src/assets/icons/general/pdftron-action-load-all-annotations.svg diff --git a/apps/red-ui/src/app/modules/pdf-viewer/services/viewer-header.service.ts b/apps/red-ui/src/app/modules/pdf-viewer/services/viewer-header.service.ts index bc905600b..a0ea2375f 100644 --- a/apps/red-ui/src/app/modules/pdf-viewer/services/viewer-header.service.ts +++ b/apps/red-ui/src/app/modules/pdf-viewer/services/viewer-header.service.ts @@ -93,7 +93,7 @@ export class ViewerHeaderService { return { type: 'actionButton', title: this._translateService.instant('viewer-header.load-all-annotations'), - img: this._convertPath('/assets/icons/general/pdftron-action-disable-tooltips.svg'), + img: this._convertPath('/assets/icons/general/pdftron-action-load-all-annotations.svg'), onClick: () => this.#events$.next({ type: ViewerEvents.LOAD_ALL_ANNOTATIONS }), dataElement: HeaderElements.LOAD_ALL_ANNOTATIONS, }; @@ -235,9 +235,10 @@ export class ViewerHeaderService { this._pdf.instance?.UI.setHeaderItems(header => { const enabledItems: IHeaderElement[] = []; const groups: HeaderElementType[][] = [ - [HeaderElements.COMPARE_BUTTON, HeaderElements.CLOSE_COMPARE_BUTTON, HeaderElements.LOAD_ALL_ANNOTATIONS], + [HeaderElements.COMPARE_BUTTON, HeaderElements.CLOSE_COMPARE_BUTTON], [HeaderElements.TOGGLE_TOOLTIPS, HeaderElements.TOGGLE_READABLE_REDACTIONS], [HeaderElements.SHAPE_TOOL_GROUP_BUTTON], + [HeaderElements.LOAD_ALL_ANNOTATIONS], [ HeaderElements.ROTATE_LEFT_BUTTON, HeaderElements.ROTATE_RIGHT_BUTTON, @@ -256,14 +257,14 @@ export class ViewerHeaderService { disableLoadAllAnnotations(): void { this._pdf.instance.UI.updateElement(HeaderElements.LOAD_ALL_ANNOTATIONS, { - img: this._convertPath('/assets/icons/general/pdftron-action-enable-tooltips.svg'), + img: this._convertPath('/assets/icons/general/pdftron-action-load-all-annotations-disabled.svg'), onClick: undefined, }); } enableLoadAllAnnotations(): void { this._pdf.instance.UI.updateElement(HeaderElements.LOAD_ALL_ANNOTATIONS, { - img: this._convertPath('/assets/icons/general/pdftron-action-disable-tooltips.svg'), + img: this._convertPath('/assets/icons/general/pdftron-action-load-all-annotations.svg'), onClick: () => this.#events$.next({ type: ViewerEvents.LOAD_ALL_ANNOTATIONS }), }); } diff --git a/apps/red-ui/src/assets/icons/general/pdftron-action-load-all-annotations-disabled.svg b/apps/red-ui/src/assets/icons/general/pdftron-action-load-all-annotations-disabled.svg new file mode 100644 index 000000000..fca37efba --- /dev/null +++ b/apps/red-ui/src/assets/icons/general/pdftron-action-load-all-annotations-disabled.svg @@ -0,0 +1,8 @@ + + + + + diff --git a/apps/red-ui/src/assets/icons/general/pdftron-action-load-all-annotations.svg b/apps/red-ui/src/assets/icons/general/pdftron-action-load-all-annotations.svg new file mode 100644 index 000000000..0adbff725 --- /dev/null +++ b/apps/red-ui/src/assets/icons/general/pdftron-action-load-all-annotations.svg @@ -0,0 +1,8 @@ + + + + +