diff --git a/frontend/src/components/partners/currentProjects.js b/frontend/src/components/partners/currentProjects.js index dc0de5fb05..de6d3f6a79 100644 --- a/frontend/src/components/partners/currentProjects.js +++ b/frontend/src/components/partners/currentProjects.js @@ -109,6 +109,7 @@ export function CurrentProjects({ currentProjects }) { projectId={project.id} priority={project.projectPriority} organisation={project.organisationName} + showPriority={!project.sandbox} />

@@ -107,7 +108,7 @@ export function ProjectCard({ />

- {['DRAFT', 'ARCHIVED'].includes(status) ? ( + {!showPriorityIndicator ? ( ) : ( #{projectId} @@ -28,7 +35,7 @@ export function HeaderLine({ author, projectId, priority, showEditLink, organisa )} - {priority && ( + {priority && showPriority && (
@@ -50,6 +57,7 @@ export const ProjectHeader = ({ project, showEditLink }: Object) => { priority={project.projectPriority} organisation={project.organisationName} showEditLink={showEditLink && userCanEditProject} + showPriority={!project.sandbox} />

{ {projectPriorityOptions.map((option) => ( -

diff --git a/frontend/src/components/projectEdit/messages.js b/frontend/src/components/projectEdit/messages.js index 3dab8ea2b3..b1c3d0608e 100644 --- a/frontend/src/components/projectEdit/messages.js +++ b/frontend/src/components/projectEdit/messages.js @@ -763,4 +763,8 @@ export default defineMessages({ id: 'management.projects.create.review.database.sandbox', defaultMessage: 'Sandbox', }, + disabledSandboxPriority: { + id: 'projects.formInputs.priority.disabled_sandbox', + defaultMessage: 'Priority cannot be changed for sandbox projects.', + }, }); diff --git a/frontend/src/components/taskSelection/action.js b/frontend/src/components/taskSelection/action.js index c03e8f1e8d..9e54fa2862 100644 --- a/frontend/src/components/taskSelection/action.js +++ b/frontend/src/components/taskSelection/action.js @@ -304,6 +304,7 @@ export function TaskMapAction({ project, tasks, activeTasks, getTasks, action, e author={project.author} projectId={project.projectId} organisation={project.organisationName} + showPriority={!project.sandbox} />