From e2efad65fdf0fe5d87e6f32e8da745555c85ddd2 Mon Sep 17 00:00:00 2001 From: Blesilda Ramirez Date: Wed, 30 Oct 2024 23:58:58 +0800 Subject: [PATCH] pkp/pkp-lib#9626 Use svg icons in smarty templates that use Icon component --- js/load.js | 3 +++ templates/layouts/backend.tpl | 10 +++++----- templates/management/access.tpl | 2 +- templates/management/manageEmails.tpl | 2 +- templates/stats/editorial.tpl | 2 +- templates/stats/publications.tpl | 4 ++-- templates/submission/review-contributors.tpl | 4 ++-- templates/submission/review-details.tpl | 2 +- templates/submission/review-files.tpl | 2 +- templates/submission/review-publication-field.tpl | 2 +- 10 files changed, 18 insertions(+), 15 deletions(-) diff --git a/js/load.js b/js/load.js index 1ee1f943881..e8450c1a088 100644 --- a/js/load.js +++ b/js/load.js @@ -31,6 +31,7 @@ import Badge from '@/components/Badge/Badge.vue'; import Dropdown from '@/components/Dropdown/Dropdown.vue'; import DropdownActions from '@/components/DropdownActions/DropdownActions.vue'; import Icon from '@/components/Icon/Icon.vue'; +import InitialsAvatar from '@/components/InitialsAvatar/InitialsAvatar.vue'; import SideNav from '@/components/SideNav/SideNav.vue'; import Notification from '@/components/Notification/Notification.vue'; import Panel from '@/components/Panel/Panel.vue'; @@ -120,6 +121,8 @@ VueRegistry.registerComponent('PkpDropdown', Dropdown); VueRegistry.registerComponent('DropdownActions', DropdownActions); VueRegistry.registerComponent('Icon', Icon); VueRegistry.registerComponent('PkpIcon', Icon); +VueRegistry.registerComponent('InitialsAvatar', InitialsAvatar); +VueRegistry.registerComponent('PkpInitialsAvatar', InitialsAvatar); VueRegistry.registerComponent('PkpSideNav', SideNav); VueRegistry.registerComponent('Notification', Notification); VueRegistry.registerComponent('PkpNotification', Notification); diff --git a/templates/layouts/backend.tpl b/templates/layouts/backend.tpl index ed1be545c39..5eff8990c4d 100644 --- a/templates/layouts/backend.tpl +++ b/templates/layouts/backend.tpl @@ -43,7 +43,7 @@ {if $availableContexts}