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:
parent
388b206b92
commit
c9f4234ed3
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user