mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2026-10-01 03:36:04 +08:00
Latest changes from harvester/master
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
This commit is contained in:
@@ -314,12 +314,21 @@ export default {
|
||||
} else if (selector[HOSTNAME] && Object.keys(selector).length === 1) {
|
||||
const matchNode = allNodes.find(n => n.id === selector[HOSTNAME]);
|
||||
|
||||
this.matchingNodes = {
|
||||
matched: 1,
|
||||
total: allNodes.length,
|
||||
none: false,
|
||||
sample: matchNode ? matchNode.nameDisplay : selector[HOSTNAME],
|
||||
};
|
||||
if (matchNode) {
|
||||
this.matchingNodes = {
|
||||
matched: 1,
|
||||
total: allNodes.length,
|
||||
none: false,
|
||||
sample: matchNode.nameDisplay,
|
||||
};
|
||||
} else {
|
||||
this.matchingNodes = {
|
||||
matched: 0,
|
||||
total: 0,
|
||||
none: true,
|
||||
sample: null,
|
||||
};
|
||||
}
|
||||
} else {
|
||||
const match = matching(allNodes, selector);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user