guoqqqi commented on a change in pull request #2359:
URL: https://github.com/apache/apisix-dashboard/pull/2359#discussion_r820335536
##########
File path: web/src/components/Plugin/PluginPage.tsx
##########
@@ -179,66 +183,131 @@ const PluginPage: React.FC<Props> = ({
/>
</>
)}
- {typeList.map((typeItem) => {
- return (
- <PanelSection
- title={formatMessage({ id: `component.plugin.${typeItem}` })}
- key={typeItem}
- style={PanelSectionStyle}
- id={`plugin-category-${typeItem}`}
- >
- {orderBy(
- pluginList.filter((item) => item.type ===
typeItem.toLowerCase() && !item.hidden),
- 'name',
- 'asc',
- ).map((item) => (
- <Card
- key={item.name}
- actions={[
- <Button
- type={
- initialData[item.name] &&
!initialData[item.name].disable
- ? 'primary'
- : 'default'
- }
- danger={initialData[item.name] &&
!initialData[item.name].disable}
- onClick={() => {
- setName(item.name);
+ {readonly
+ ? new_openPluginType.map((typeItem) => {
Review comment:
We can update dom automatically by changing the source data 😄
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]