|
|
|
@@ -54,6 +54,11 @@ export default async function initCloudrain() { |
|
|
|
} else { |
|
|
|
$('#ai-delete-' + ID).removeClass('blue').addClass('disabled') |
|
|
|
} |
|
|
|
if (["COMPLETED", "SUCCEEDED"].includes(status)) { |
|
|
|
$('#ai-download-' + ID).removeClass('disabled').addClass('blue') |
|
|
|
} else { |
|
|
|
$('#ai-download-' + ID).removeClass('blue').addClass('disabled') |
|
|
|
} |
|
|
|
}).fail(function (err) { |
|
|
|
console.log(err); |
|
|
|
}); |
|
|
|
|