Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/components/Container/SettingsPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,13 @@ export default {
}
}

// Add or remove the content navigation link by reloading the page,
// since the content menu is handled by app-specific server-side code
// to avoid managing it in the frontend, as it's shared across other apps.
if (formId === pkp.const.FORM_CONTENT_COMMENT) {
window.location.reload();
}

// Update allowed pubObjects for DOI assignment on registration agency change
if (formId === pkp.const.FORM_DOI_REGISTRATION_SETTINGS) {
const newlyEnabledPlugin = context.registrationAgency;
Expand Down
1 change: 1 addition & 0 deletions src/components/Icon/Icon.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ export const IconGallery = {
'Clock',
'Comment',
'Complete',
'Content',
'Dashboard',
'Declined',
'DefaultDocument',
Expand Down
6 changes: 3 additions & 3 deletions src/components/Icon/Icon.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ import ChevronUp from './icons/ChevronUp.vue';
import Clock from './icons/Clock.vue';
import Comment from './icons/Comment.vue';
import Complete from './icons/Complete.vue';
import Content from './icons/Content.vue';
import Dashboard from './icons/Dashboard.vue';
import Declined from './icons/Declined.vue';
import DecreaseTextSize from './icons/DecreaseTextSize.vue';
Expand Down Expand Up @@ -122,7 +123,6 @@ import UsefulTipsPrimary from './icons/UsefulTipsPrimary.vue';
import User from './icons/User.vue';
import View from './icons/View.vue';
import Workflow from './icons/Workflow.vue';
import Content from './icons/Content.vue';

const svgIcons = {
Add,
Expand Down Expand Up @@ -152,6 +152,7 @@ const svgIcons = {
Clock,
Comment,
Complete,
Content,
Dashboard,
Declined,
DefaultDocument,
Expand Down Expand Up @@ -206,6 +207,7 @@ const svgIcons = {
NotVisible,
OpenReview,
Orcid,
OrcidUnauthenticated,
Overdue,
Paste,
Payment,
Expand Down Expand Up @@ -240,8 +242,6 @@ const svgIcons = {
User,
View,
Workflow,
OrcidUnauthenticated,
Content,
};

const props = defineProps({
Expand Down
10 changes: 2 additions & 8 deletions src/components/Icon/icons/Content.vue
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
<template>
<svg
width="18"
height="18"
viewBox="0 0 18 18"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<svg viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
<path
d="M10.029 2.467H16.9042M10.029 4.5295H16.9042M10.029 6.592H16.9042M10.029 11.4048H16.9042M10.029 13.4672H16.9042M10.029 15.5297H16.9042M7.96874 16.219C7.96874 16.4013 7.89638 16.5761 7.76757 16.705C7.63875 16.834 7.46401 16.9066 7.28174 16.9067H1.78124C1.59897 16.9066 1.42423 16.834 1.29541 16.705C1.16659 16.5761 1.09424 16.4013 1.09424 16.219V10.7192C1.09424 10.537 1.16659 10.3622 1.29541 10.2332C1.42423 10.1042 1.59897 10.0317 1.78124 10.0315H7.28249C7.46476 10.0317 7.6395 10.1042 7.76832 10.2332C7.89713 10.3622 7.96949 10.537 7.96949 10.7192L7.96874 16.219ZM7.96874 7.28125C7.96874 7.46352 7.89638 7.63834 7.76757 7.7673C7.63875 7.89625 7.46401 7.9688 7.28174 7.969H1.78124C1.59897 7.9688 1.42423 7.89625 1.29541 7.7673C1.16659 7.63834 1.09424 7.46352 1.09424 7.28125V1.7815C1.09424 1.59923 1.16659 1.42441 1.29541 1.29545C1.42423 1.1665 1.59897 1.09395 1.78124 1.09375H7.28249C7.46476 1.09395 7.6395 1.1665 7.76832 1.29545C7.89713 1.42441 7.96949 1.59923 7.96949 1.7815L7.96874 7.28125Z"
stroke="#006798"
stroke="currentColor"
stroke-linecap="round"
stroke-linejoin="round"
/>
Expand Down