kerwin612 opened a new issue, #451:
URL: https://github.com/apache/shenyu-dashboard/issues/451

   
![20240520082617](https://github.com/apache/shenyu-dashboard/assets/3371163/3923439b-0cb4-4c6a-be02-962ab7e5baab)
   **Currently supports enabling or disabling individual data entries, now 
needs to add support for batch operations.**  
   
   ---  
   
   **The API is reusable and was initially designed to support batch 
operations.**  
   
   * Enable or Disable 'Selector'  
   > shenyu-dashboard/src/routes/Plugin/Common/index.js
   ```
   //dispatch type
   type: "common/enableSelector",
   //dispatch body
   payload: {
     list,     //id list: ['XXX', 'YYY']
     enabled,  //target status: true/enable, false/disable
   },
   ```
   * Enable or Disable 'Rule'
   > shenyu-dashboard/src/routes/Plugin/Common/index.js
   ```
   //dispatch type
   type: "common/enableRule",
   //dispatch body
   payload: {
     list,     //id list: ['XXX', 'YYY']
     enabled,  //target status: true/enable, false/disable
   },
   ```


-- 
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]

Reply via email to