From 556e8da0261f728882c985d3820ad6b0ddaba2de Mon Sep 17 00:00:00 2001 From: Ole Martin Pettersen Date: Tue, 14 Jan 2025 12:06:56 +0100 Subject: [PATCH] =?UTF-8?q?Feilh=C3=A5ndtering=20for=20Planner-konfigurasj?= =?UTF-8?q?on=20dersom=20bruker=20ikke=20er=20b=C3=A5de=20eier=20og=20medl?= =?UTF-8?q?em=20#1593=20(#1595)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 1 + .../{index.tsx => TemplateConfigMessage.tsx} | 14 ++++-- .../TemplateConfigMessage/index.ts | 1 + .../useTemplateConfigMessage.ts | 46 +++++++++++++++++++ .../useTemplateConfigMessage.tsx | 33 ------------- .../components/ProjectSetupDialog/types.ts | 7 ++- .../ProjectExtensions/src/loc/_/en-us.js | 1 + .../ProjectExtensions/src/loc/myStrings.d.ts | 1 + .../ProjectExtensions/src/loc/nb-no.js | 1 + .../src/projectSetup/index.ts | 24 ++++++---- .../src/projectSetup/types.ts | 9 +++- 11 files changed, 89 insertions(+), 49 deletions(-) rename SharePointFramework/ProjectExtensions/src/components/ProjectSetupDialog/TemplateConfigMessage/{index.tsx => TemplateConfigMessage.tsx} (54%) create mode 100644 SharePointFramework/ProjectExtensions/src/components/ProjectSetupDialog/TemplateConfigMessage/index.ts create mode 100644 SharePointFramework/ProjectExtensions/src/components/ProjectSetupDialog/TemplateConfigMessage/useTemplateConfigMessage.ts delete mode 100644 SharePointFramework/ProjectExtensions/src/components/ProjectSetupDialog/TemplateConfigMessage/useTemplateConfigMessage.tsx diff --git a/CHANGELOG.md b/CHANGELOG.md index df8872d1c..c755b72c9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ Sjekk ut [release notes](./releasenotes/1.10.0.md) for høydepunkter og mer deta ### Forbedringer - Forbedret feilhåndtering for redigeringspanel for statusrapport [#1578](https://github.com/Puzzlepart/prosjektportalen365/issues/1578) +- Forbedret feilhåndtering for provisjonering av Planner-oppgaver [#1593](https://github.com/Puzzlepart/prosjektportalen365/issues/1593) ## 1.10.1 - TBA diff --git a/SharePointFramework/ProjectExtensions/src/components/ProjectSetupDialog/TemplateConfigMessage/index.tsx b/SharePointFramework/ProjectExtensions/src/components/ProjectSetupDialog/TemplateConfigMessage/TemplateConfigMessage.tsx similarity index 54% rename from SharePointFramework/ProjectExtensions/src/components/ProjectSetupDialog/TemplateConfigMessage/index.tsx rename to SharePointFramework/ProjectExtensions/src/components/ProjectSetupDialog/TemplateConfigMessage/TemplateConfigMessage.tsx index e9e1b0ee9..360d18fad 100644 --- a/SharePointFramework/ProjectExtensions/src/components/ProjectSetupDialog/TemplateConfigMessage/index.tsx +++ b/SharePointFramework/ProjectExtensions/src/components/ProjectSetupDialog/TemplateConfigMessage/TemplateConfigMessage.tsx @@ -5,11 +5,17 @@ import { useTemplateConfigMessage } from './useTemplateConfigMessage' import { UserMessage } from 'pp365-shared-library' export const TemplateConfigMessage: FC = (props) => { - const { hidden, message } = useTemplateConfigMessage(props) - + const messages = useTemplateConfigMessage(props) return ( -