|
|
|
@@ -130,11 +130,14 @@ export default async function initCloudrainSow() { |
|
|
|
let repoPath = $(`#accordion${version_name}`).data("repopath"); |
|
|
|
$(`#log_file${version_name}`).siblings("pre").remove(); |
|
|
|
let end_line = $(`#log${version_name} input[name=end_line]`).val(); |
|
|
|
$(".ui.inverted.active.dimmer").css("display", "block"); |
|
|
|
$(`#log${version_name} .ui.inverted.active.dimmer`).css("display", "block"); |
|
|
|
$.get( |
|
|
|
`/api/v1/repos/${repoPath}/${ID}/log?version_name=${version_name}&base_line=&lines=50&order=desc`, |
|
|
|
(data) => { |
|
|
|
$(".ui.inverted.active.dimmer").css("display", "none"); |
|
|
|
$(`#log${version_name} .ui.inverted.active.dimmer`).css( |
|
|
|
"display", |
|
|
|
"none" |
|
|
|
); |
|
|
|
if (!data.CanLogDownload) { |
|
|
|
$(`#${version_name}-log-down`) |
|
|
|
.removeClass("ti-download-file") |
|
|
|
|