Skip to content
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

Ability to quickly mark an asset as status used #45

Open
ryanmerolle opened this issue Dec 15, 2022 · 2 comments
Open

Ability to quickly mark an asset as status used #45

ryanmerolle opened this issue Dec 15, 2022 · 2 comments
Assignees

Comments

@ryanmerolle
Copy link
Contributor

It would be nice for the various asset views to provide a quick access button in line of the table to mark an asset status as used.

@matejv
Copy link
Member

matejv commented Jan 30, 2023

Makes sense, and should be easily doable.

@matejv
Copy link
Member

matejv commented Feb 20, 2023

Well, it might not be as easy as I thought.

For example - netbox has in Interface table a button "Mark planned" or "Mark connected". This button is only enabled if there is a cable connected. And clicking it toggles the status field of connected cable.

I thought I could implement a similar functionality. Unfortunately this requires some javascript code to figure out the state that should be set and to send the API request in the background (see connectionToggle.ts. So this is not some reusable component.

Also there is no way (as I'm aware) to include javascript code as part of a plugin.

So, any ideas how to implement this another way are welcome :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants