mirror of
https://github.com/rancher-sandbox/rancher-desktop.git
synced 2021-10-13 00:04:06 +03:00
Explain why the UI sometimes needs to request the namespaces
Signed-off-by: Eric Promislow <epromislow@suse.com>
This commit is contained in:
@@ -47,7 +47,10 @@ export default {
|
||||
);
|
||||
ipcRenderer.on('images-changed', (event, images) => {
|
||||
this.$data.images = images;
|
||||
if (this.$data.imageNamespaces.length === 0) {
|
||||
if (this.imageNamespaces.length === 0) {
|
||||
// This happens if the user clicked on the Images panel before data was ready,
|
||||
// so no namespaces were available when it initially asked for them.
|
||||
// When the data is ready, images are pushed in, but namespaces aren't.
|
||||
ipcRenderer.send('images-namespaces-read');
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user