+14
-32
@@ -23,7 +23,6 @@ var HANDLE_FRAMES = 8;
|
||||
lastActionText: null,
|
||||
pipelineStatusText: null,
|
||||
urgentCheckbox: null,
|
||||
vfxScopeField: null,
|
||||
submissionNoteField: null
|
||||
};
|
||||
|
||||
@@ -2452,9 +2451,6 @@ var HANDLE_FRAMES = 8;
|
||||
if (pipelineState.prefilledShotCode === shotCode) {
|
||||
return;
|
||||
}
|
||||
if (uiState.vfxScopeField) {
|
||||
uiState.vfxScopeField.text = (exportInfo && exportInfo.vfxScope) ? exportInfo.vfxScope : "";
|
||||
}
|
||||
if (uiState.submissionNoteField) {
|
||||
uiState.submissionNoteField.text = (exportInfo && exportInfo.submissionNote) ? exportInfo.submissionNote : "";
|
||||
}
|
||||
@@ -2534,13 +2530,12 @@ var HANDLE_FRAMES = 8;
|
||||
if (urgent) {
|
||||
body.priority = 20;
|
||||
}
|
||||
// Sent every time so edits stick; omitting them would make the server
|
||||
// inherit the previous submission's values instead.
|
||||
if (uiState.vfxScopeField) {
|
||||
body.vfxScope = uiState.vfxScopeField.text;
|
||||
}
|
||||
// submissionNote is a per-export override; if blank the server falls back to the shot's slate default.
|
||||
if (uiState.submissionNoteField) {
|
||||
body.submissionNote = uiState.submissionNoteField.text;
|
||||
var note = uiState.submissionNoteField.text;
|
||||
if (note && note.trim()) {
|
||||
body.submissionNote = note;
|
||||
}
|
||||
}
|
||||
return postJSON(BASE_URL + "/api/ext/exports", body);
|
||||
}
|
||||
@@ -2671,10 +2666,6 @@ var HANDLE_FRAMES = 8;
|
||||
var shotBuilderGroup;
|
||||
var shotBuilderButton;
|
||||
var pipelinePanel;
|
||||
var slateScopeGroup;
|
||||
var slateScopeLabel;
|
||||
var slateNoteGroup;
|
||||
var slateNoteLabel;
|
||||
var pipelineRow1;
|
||||
var pipelineRow2;
|
||||
var queueExportButton;
|
||||
@@ -2753,24 +2744,6 @@ var HANDLE_FRAMES = 8;
|
||||
|
||||
uiState.pipelineStatusText = pipelinePanel.add("statictext", undefined, "Export status: not checked");
|
||||
|
||||
slateScopeGroup = pipelinePanel.add("group");
|
||||
slateScopeGroup.orientation = "row";
|
||||
slateScopeGroup.alignChildren = ["fill", "center"];
|
||||
slateScopeGroup.spacing = 6;
|
||||
slateScopeLabel = slateScopeGroup.add("statictext", undefined, "VFX Scope:");
|
||||
slateScopeLabel.preferredSize = [90, 20];
|
||||
uiState.vfxScopeField = slateScopeGroup.add("edittext", undefined, "");
|
||||
uiState.vfxScopeField.preferredSize = [220, 22];
|
||||
|
||||
slateNoteGroup = pipelinePanel.add("group");
|
||||
slateNoteGroup.orientation = "row";
|
||||
slateNoteGroup.alignChildren = ["fill", "top"];
|
||||
slateNoteGroup.spacing = 6;
|
||||
slateNoteLabel = slateNoteGroup.add("statictext", undefined, "Submission Note:");
|
||||
slateNoteLabel.preferredSize = [90, 20];
|
||||
uiState.submissionNoteField = slateNoteGroup.add("edittext", undefined, "", { multiline: true });
|
||||
uiState.submissionNoteField.preferredSize = [220, 48];
|
||||
|
||||
pipelineRow1 = pipelinePanel.add("group");
|
||||
pipelineRow1.orientation = "row";
|
||||
pipelineRow1.alignChildren = ["fill", "center"];
|
||||
@@ -2778,6 +2751,15 @@ var HANDLE_FRAMES = 8;
|
||||
queueExportButton = pipelineRow1.add("button", undefined, "Queue Export");
|
||||
uiState.urgentCheckbox = pipelineRow1.add("checkbox", undefined, "Urgent");
|
||||
|
||||
var slateNoteGroup = pipelinePanel.add("group");
|
||||
slateNoteGroup.orientation = "row";
|
||||
slateNoteGroup.alignChildren = ["fill", "top"];
|
||||
slateNoteGroup.spacing = 6;
|
||||
var slateNoteLabel = slateNoteGroup.add("statictext", undefined, "Sub. Note:");
|
||||
slateNoteLabel.preferredSize = [70, 20];
|
||||
uiState.submissionNoteField = slateNoteGroup.add("edittext", undefined, "", { multiline: false });
|
||||
uiState.submissionNoteField.preferredSize = [240, 22];
|
||||
|
||||
pipelineRow2 = pipelinePanel.add("group");
|
||||
pipelineRow2.orientation = "row";
|
||||
pipelineRow2.alignChildren = ["fill", "center"];
|
||||
|
||||
Reference in New Issue
Block a user