-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Disable Uninstall and Enable/Disable buttons while uninstalling #1539
Conversation
panuhorsmalahti
commented
Nov 26, 2020
- Disable Uninstall and Enable/Disable buttons while uninstalling
- Add "spinner" (e.g. waiting animation) to Uninstall button while install is in progress
- Add Notification for uninstall
8a90e79
to
6b284c1
Compare
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.
Except for a few minor things. This looks good.
function getRemovedUninstalling(extensions: InstalledExtension[], extensionState: ObservableMap<string, ExtensionState>) { | ||
return Array.from(extensionState.entries()).filter(([id, extension]) => | ||
extension.state === "uninstalling" && !extensions.find(extension => extension.id === id) | ||
).map(([id, extension]) => ({ ...extension, id })); | ||
} |
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.
I think this would be better as a @computed get removedUninstalling() { ... }
on the Extensions
class bellow.
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.
Converted
description.toLowerCase().includes(searchText), | ||
].some(v => v); | ||
description?.toLowerCase().includes(searchText), | ||
].some(value => value); |
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.
Would using _.filter
be more readable?
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.
Maybe, but not going to touch unrelated code much here, just wanted to fix one char variable naming..
…Notification for uninstall. Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>
aba1f71
to
83a8797
Compare