11
This commit is contained in:
@@ -22,12 +22,22 @@ const tipItems = [
|
||||
|
||||
function onCancel() {
|
||||
feedback.value = { severity: "", message: "" };
|
||||
if (videoRewriting.value) {
|
||||
workflow.videoRewriteAbortRequested = true;
|
||||
workflow.videoRewriting = false;
|
||||
workflow.rewriteProgress = "";
|
||||
}
|
||||
workflow.videoLinkModalVisible = false;
|
||||
}
|
||||
|
||||
function onDialogHide() {
|
||||
onCancel();
|
||||
}
|
||||
|
||||
async function onRewrite() {
|
||||
feedback.value = { severity: "", message: "" };
|
||||
const result = await executeVideoRewrite(workflow);
|
||||
if (result?.cancelled) return;
|
||||
if (!result.ok) {
|
||||
feedback.value = { severity: "error", message: result.message };
|
||||
} else {
|
||||
@@ -44,6 +54,7 @@ async function onRewrite() {
|
||||
:style="{ width: '600px' }"
|
||||
:draggable="false"
|
||||
class="ip-brain-dialog"
|
||||
@hide="onDialogHide"
|
||||
>
|
||||
<div class="space-y-4">
|
||||
<Message
|
||||
|
||||
Reference in New Issue
Block a user