1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Return a Promise from downloadAllLogs()

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
Alex Andreev 2022-08-15 14:57:45 +03:00
parent 388b206b92
commit c9f4234ed3

View File

@ -95,7 +95,7 @@ export class LogTabViewModel {
}
};
downloadAllLogs = async () => {
downloadAllLogs = () => {
const pod = this.pod.get();
const tabData = this.logTabData.get();
@ -103,7 +103,9 @@ export class LogTabViewModel {
const params = { name: pod.getName(), namespace: pod.getNs() };
const query = { timestamps: tabData.showTimestamps, previous: tabData.showPrevious }
this.dependencies.downloadAllLogs(params, query);
return this.dependencies.downloadAllLogs(params, query);
}
return;
}
}