Wcdaren commented on code in PR #2506:
URL: https://github.com/apache/apisix-dashboard/pull/2506#discussion_r917515818


##########
web/src/components/Plugin/data.tsx:
##########
@@ -74,6 +74,15 @@ export enum PluginType {
   other = 'other',
 }
 
+export enum PluginState {
+  disable = 10,
+  enable = 20,

Review Comment:
   it was written in order to better extend the state, to display different 
logic and to facilitate sorting, for example 
   
   - not added --> 0  
   - added --> 1 
   - disable --> 10 
   - enable --> 20 
   
   Sorting by state: enable > disable > added  > not added 



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