We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d95157c commit edc959cCopy full SHA for edc959c
1 file changed
browser/pages/selection/controller.js
@@ -52,15 +52,22 @@ class SelectionController {
52
}
53
54
toggleSelection(type) {
55
+ let deselectedComponents = [];
56
this.componentsInChannel(this.channel_tab).forEach((node)=>{
57
if(type==='all') {
58
if (node.isInstallable && node.isNotDetected()) {
59
node.selectedOption = 'install';
60
61
} else if(type==='none') {
62
node.selectedOption = 'detected';
63
+ deselectedComponents.push(node);
64
65
});
66
+ for (const node of deselectedComponents) {
67
+ if (node.references > 0) {
68
+ node.selectedOption = 'install';
69
+ }
70
71
72
73
channelBadge(tab) {
0 commit comments