@@ -720,7 +720,7 @@ export default { | |||||
} | } | ||||
.datast-upload-progress .dataset-name { | .datast-upload-progress .dataset-name { | ||||
text-align: right; | text-align: right; | ||||
width: 120px; | |||||
width: 200px; | |||||
margin-right: 1rem; | margin-right: 1rem; | ||||
} | } | ||||
.datast-upload-progress .dataset-progress { | .datast-upload-progress .dataset-progress { | ||||
@@ -197,7 +197,22 @@ export default async function initCloudrainSow() { | |||||
$(".log-info .log_bottom").trigger("click"); | $(".log-info .log_bottom").trigger("click"); | ||||
e.stopPropagation(); | e.stopPropagation(); | ||||
}); | }); | ||||
$(".stop-show-version").click(function (e) { | |||||
const ID = this.dataset.jobid; | |||||
const repoPath = this.dataset.repopath; | |||||
const version_name = this.dataset.version; | |||||
const url = `/api/v1/repos/${repoPath}/${ID}/stop_version`; | |||||
$.post(url, { version_name: version_name }, (data) => { | |||||
if (data.StatusOK === 0) { | |||||
$(`#${version_name}-stop`).removeClass("blue"); | |||||
$(`#${version_name}-stop`).addClass("disabled"); | |||||
refreshStatusShow(version_name, ID, repoPath); | |||||
} | |||||
}).fail(function (err) { | |||||
console.log(err); | |||||
}); | |||||
e.stopPropagation(); | |||||
}); | |||||
function refreshStatusShow(version_name, ID, repoPath) { | function refreshStatusShow(version_name, ID, repoPath) { | ||||
$.get( | $.get( | ||||
`/api/v1/repos/${repoPath}/${ID}?version_name=${version_name}`, | `/api/v1/repos/${repoPath}/${ID}?version_name=${version_name}`, | ||||
@@ -329,24 +329,6 @@ export default async function initCloudrain() { | |||||
console.log(err); | console.log(err); | ||||
}); | }); | ||||
} | } | ||||
$(".stop-show-version").click(function (e) { | |||||
const ID = this.dataset.jobid; | |||||
const repoPath = this.dataset.repopath; | |||||
const version_name = this.dataset.version; | |||||
const url = `/api/v1/repos/${repoPath}/${ID}/stop_version`; | |||||
$.post(url, { version_name: version_name }, (data) => { | |||||
if (data.StatusOK === 0) { | |||||
$(`#${version_name}-stop`).removeClass("blue"); | |||||
$(`#${version_name}-stop`).addClass("disabled"); | |||||
refreshStatusShow(version_name, ID, repoPath); | |||||
} | |||||
}).fail(function (err) { | |||||
console.log(err); | |||||
}); | |||||
e.stopPropagation(); | |||||
}); | |||||
function refreshStatus(version_name, ID, repoPath) { | function refreshStatus(version_name, ID, repoPath) { | ||||
const url = `/api/v1/repos/${repoPath}/${ID}/?version_name${version_name}`; | const url = `/api/v1/repos/${repoPath}/${ID}/?version_name${version_name}`; | ||||
$.get(url, (data) => { | $.get(url, (data) => { | ||||