From 312c6b5be82dcca07eb0bbe33aa0373a7a57ddcf Mon Sep 17 00:00:00 2001 From: chamiakJ Date: Tue, 27 May 2025 17:13:04 +0530 Subject: [PATCH] feat(settings): add project templates settings to the configuration - Restored the project templates settings in the settings constants file, making it accessible for admin users. --- .../src/lib/settings/settings-constants.ts | 16 ++++++++-------- .../project-templates-settings.tsx | 4 ++-- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/worklenz-frontend/src/lib/settings/settings-constants.ts b/worklenz-frontend/src/lib/settings/settings-constants.ts index 9855b008..7f9beb2a 100644 --- a/worklenz-frontend/src/lib/settings/settings-constants.ts +++ b/worklenz-frontend/src/lib/settings/settings-constants.ts @@ -108,14 +108,14 @@ export const settingsItems: SettingMenuItems[] = [ element: React.createElement(CategoriesSettings), adminOnly: true, }, - // { - // key: 'project-templates', - // name: 'project-templates', - // endpoint: 'project-templates', - // icon: React.createElement(FileZipOutlined), - // element: React.createElement(ProjectTemplatesSettings), - // adminOnly: true, - // }, + { + key: 'project-templates', + name: 'project-templates', + endpoint: 'project-templates', + icon: React.createElement(FileZipOutlined), + element: React.createElement(ProjectTemplatesSettings), + adminOnly: true, + }, { key: 'task-templates', name: 'task-templates', diff --git a/worklenz-frontend/src/pages/settings/project-templates/project-templates-settings.tsx b/worklenz-frontend/src/pages/settings/project-templates/project-templates-settings.tsx index 714947fc..7da55d59 100644 --- a/worklenz-frontend/src/pages/settings/project-templates/project-templates-settings.tsx +++ b/worklenz-frontend/src/pages/settings/project-templates/project-templates-settings.tsx @@ -51,7 +51,7 @@ const ProjectTemplatesSettings = () => { style={{ display: 'flex', gap: '10px', justifyContent: 'right' }} className="button-visibilty" > - + {/* - + */}