I have an app that display a table I build by calling third-party REST API. There is nothing for user to configure. I used below code to show the View component for both view and edit mode.
const App = () => {
const context = useProductContext();
if (!context) {
return "Loading...";
}
// return context.extension.entryPoint === "edit" ? <Edit /> : <View />;
return <View />;
};
manifest file:
modules:
jira:dashboardGadget:
- key: ....-jira-dashboard-gadget-ui-kit-2-hello-world-gadget
title: ....
description: ....
thumbnail: https://developer.atlassian.com/platform/forge/images/icons/issue-panel-icon.svg
resource: main-resource
render: native
resolver:
function: resolver
edit:
resource: main-resource
render: native
function:
- key: resolver
handler: index.handler
resources:
- key: main-resource
path: src/frontend/index.jsx
app:
runtime:
name: nodejs20.x
id: ari:cloud:ecosystem::app/a580b.....
permissions:
scopes:
- read:jira-work
external:
fetch:
backend:
- mydomain.teamsupport.com
When the Jira dashboard is not in edit mode I get below message.
Regards,