mirror of https://github.com/rancher/dashboard.git
Merge pull request #2562 from richard-cox/fix-bulk-yaml-download
Fix Download YAML list action when multiple resources are selected
This commit is contained in:
commit
32f770f9e2
|
|
@ -1075,7 +1075,7 @@ export default {
|
||||||
const link = item.hasLink('rioview') ? 'rioview' : 'view';
|
const link = item.hasLink('rioview') ? 'rioview' : 'view';
|
||||||
|
|
||||||
return item.followLink(link, { headers: { accept: 'application/yaml' } } ).then((data) => {
|
return item.followLink(link, { headers: { accept: 'application/yaml' } } ).then((data) => {
|
||||||
files[`resources/${ names[idx] }`] = data;
|
files[`resources/${ names[idx] }`] = data.data || data;
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue