-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
machines: Detach disk #9812
machines: Detach disk #9812
Conversation
@andreasn @garrett I am implementing a new feature in machines package. Specifically, in the Disks sub tab I am adding the [-] button to allow user to detach disks from VMs. |
428531c
to
ee063bb
Compare
ee063bb
to
61f08fc
Compare
I was looking for examples of this pattern in Cockpit, and found a bunch. ...but we're consistently inconsistent for both the add and remove buttons. I'm looking through PatternFly at the moment to see if there guidelines on what should be used (and so far, I haven't found anything). I took a bunch of screenshots when looking around: User account SSH keysApplicationsStorageFirewall |
I have scoured PatternFly.org and still haven't found anything relevant. Here are interpreted rules from what we're doing on Cockpit:
So, unless @andreasn has a difference of opinion, I think having an "Add" button spelled out and " We should probably test these patterns. TL;DR: Yes, I think it's probably fine as-is. |
Firstly: It's hard to see it without the HTML + CSS, and I can't really get this working on my machine to test it locally. 😞 So I'll elaborate what we talked about in IRC with a few other details worth mentioning:
Here's a modified version of your screenshot that illustrates the above suggestions: It would be nice if this could be fixed in this PR, but I'm happy to have this addressed in a second PR too if that makes things easier. |
@garrett I think it's better to open separate issue for your comments above, because all are relevant to whole disks rows, however this PR is only adding the [-] button for each row. |
New feature is introduced only for LibvirtDBus provider Detaching the disk is always done is permanent way and if the domain is running the live state is affected as well. Closes cockpit-project#9812
61f08fc
to
88d1fe7
Compare
@martinpitt it's ready for review again! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great now, thanks!
New feature is introduced only for LibvirtDBus provider Detaching the disk is always done is permanent way and if the domain is running the live state is affected as well. Closes cockpit-project#9812
Rebased on top of https://github.com//pull/9240, cannot be merged before it.
update: 9240 is already merged so this is ready for review.