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