You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, @JS-mark! I'm here to help you with any bugs, questions, or contributions you have. Let's tackle this together!
The issue you're experiencing with the 'Publish as Tool' feature, where it remains clickable and hoverable even when disabled, seems to be a known problem. The code includes logic to handle the disabled state by applying styles like opacity-30 and cursor-not-allowed to indicate that the button is not interactive. However, the click event handler should prevent any action when the button is disabled by checking the published state:
onClick={()=>!published&&setShowModal(true)}
This logic should ensure that the button does not trigger any actions when it is disabled. If this behavior is not working as expected, it might be due to a bug or an oversight in the implementation. You might want to verify if the published state is being correctly set and if the styles are being applied as intended [1][2].
Self Checks
Dify version
1.0.0
Cloud or Self Hosted
Cloud
Steps to reproduce
When publishing the workflow as a tool, the status is "disabled", but the click and hover functions are not prohibited.
✔️ Expected Behavior
Normally, it should not be clickable or hoverable when it is in the disabled state.
❌ Actual Behavior
Actually, it can be clicked and hovered.
The text was updated successfully, but these errors were encountered: