Addon: add dynamic tooltip on submit button when no job type is selected #104326
No reviewers
Labels
No Label
Good First Issue
Priority
High
Priority
Low
Priority
Normal
Status
Archived
Status
Confirmed
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Job Type
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: studio/flamenco#104326
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "abelli/flamenco:addon-tooltip"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Overview
This patch adds a dynamic text to the tooltip presented in the flamenco submit button. If there are no job types selected, it will append the text "A job type must the selected first" to show the user why the button is disabled.
Fix: #104325
Demo
References
There's a built-in method that's specifically there for these cases: you can call
cls.poll_message_set("reason")
from thepoll()
function.Oh I didn't see that method earlier, I can't believe it was there at the same Operator documentation page and I missed it.
I implemented and that single line nailed exactly what I was trying to achieve but much better, here is a demo of how it looks now:
Better!
I think the text can be simplified a little, to make it a little bit less formal: "No job type selected".
Thanks!