Return a Promise from downloadAllLogs()

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
Alex Andreev committed 2022-08-15 14:57:45 +03:00
1 parent 388b206b92
commit c9f4234ed3
1 file changed
+4 -2
@@ -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;
}
}