From 772c7a72b8cc1c5a27159307f434968f3bdcb9f9 Mon Sep 17 00:00:00 2001 From: Cory Nathe Date: Wed, 10 Jul 2024 12:45:11 -0500 Subject: [PATCH] Update entryPoints.js to use permissionClasses instead of permission property (#191) - Update entryPoints.js to use permissionClasses instead of permission property - Remove entryPoints.js permission props for generateLib since they don't apply for libs --- reactExamples/resources/views/demoWebpart.view.xml | 6 +++--- reactExamples/src/client/entryPoints.js | 9 ++++----- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/reactExamples/resources/views/demoWebpart.view.xml b/reactExamples/resources/views/demoWebpart.view.xml index 7140151..5fdc65b 100644 --- a/reactExamples/resources/views/demoWebpart.view.xml +++ b/reactExamples/resources/views/demoWebpart.view.xml @@ -1,7 +1,7 @@ - - - + + + diff --git a/reactExamples/src/client/entryPoints.js b/reactExamples/src/client/entryPoints.js index ab46ed1..7e9253f 100644 --- a/reactExamples/src/client/entryPoints.js +++ b/reactExamples/src/client/entryPoints.js @@ -7,28 +7,27 @@ module.exports = { apps: [{ name: 'helloWorld', title: 'Hello World Page', - permission: 'read', + permissionClasses: ['org.labkey.api.security.permissions.ReadPermission'], path: './src/client/HelloWorldPage' },{ name: 'todoList', title: 'To-Do List Page', - permission: 'insert', + permissionClasses: ['org.labkey.api.security.permissions.InsertPermission'], path: './src/client/ToDoListPage' },{ name: 'demoWebpart', title: 'To-Do List Webpart', - permission: 'read', path: './src/client/ToDoListPage/webpart', generateLib: true // used by views/demoWebpart.html },{ name: 'queryModel', title: 'QueryModel Example Page', - permission: 'read', + permissionClasses: ['org.labkey.api.security.permissions.ReadPermission'], path: './src/client/QueryModelPage' },{ name: 'fileAttachmentForm', title: 'File Attachment Example Page', - permission: 'insert', + permissionClasses: ['org.labkey.api.security.permissions.InsertPermission'], path: './src/client/FileAttachmentPage' }] }; \ No newline at end of file