-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use entities in dropdown choice arguments #247
Comments
Hey @FieldofClay , thanks for taking the time to write up this feature request. This is entirely logical, I'm not sure why I didn't think of this before. I'm happy to implement this feature. I'd need to look into how the arguments list is populated at the moment to remind myself of how that part of the code works, I want to make sure that the implementation of these doesn't make things too messy. Adding an actions:
- title: restart container
shell: docker restart {{ containerToRestart}}
arguments:
- name: containerToRestart
entity: container
title: {{ container.name }} |
This has now been implemented in the code and will be available in the next release of OliveTin, possibly tonight, possibly the next few days. It is documented here; http://localhost/docs.olivetin.app/docs/arg-dropdowns.html#args-dropdown-entities |
Released in 2024.03.24. |
Is your feature request related to a problem? Please describe.
It would be awesome to use the new entities functionality to populate the choices for an action.
Describe the solution you'd like
Something like:
Describe alternatives you've considered
The dashboard functionality works, but having a single "restart" action with a dropdown would be less cluttered than a dozen "restart container" actions.
The text was updated successfully, but these errors were encountered: