admin: redub is opt-in now, so the switch reads that way round
This commit is contained in:
parent
58c8e92c3a
commit
aed4812b7e
1 changed files with 6 additions and 4 deletions
10
admin.html
10
admin.html
|
|
@ -159,11 +159,13 @@ function projHtml(p) {
|
||||||
+ '</div>'
|
+ '</div>'
|
||||||
// Operator switch, for hearing the same script both ways. Not a customer
|
// Operator switch, for hearing the same script both ways. Not a customer
|
||||||
// control: the server refuses it to anyone without the admin role.
|
// control: the server refuses it to anyone without the admin role.
|
||||||
|
// Veo's own read ships. The conversion is opt in, kept for the one thing
|
||||||
|
// it still solves: a voice that holds across cuts.
|
||||||
+ '<div class="kv" style="margin-top:10px">redub on the next film: <b>'
|
+ '<div class="kv" style="margin-top:10px">redub on the next film: <b>'
|
||||||
+ (p.skip_redub ? 'OFF — Veo keeps its own voice' : 'on') + '</b> '
|
+ (p.redub_on ? 'ON — converted to the pet voice' : 'off — Veo keeps its own voice') + '</b> '
|
||||||
+ '<button type="button" class="btn" style="padding:4px 10px;font-size:12px;margin-left:8px" '
|
+ '<button type="button" class="btn" style="padding:4px 10px;font-size:12px;margin-left:8px" '
|
||||||
+ 'data-redub="' + esc(p.id) + '" data-want="' + (p.skip_redub ? '0' : '1') + '">'
|
+ 'data-redub="' + esc(p.id) + '" data-want="' + (p.redub_on ? '0' : '1') + '">'
|
||||||
+ (p.skip_redub ? 'Put the redub back on' : 'Film the next one without it')
|
+ (p.redub_on ? 'Keep Veo’s own voice' : 'Redub the next one')
|
||||||
+ '</button></div>'
|
+ '</button></div>'
|
||||||
+ (p.owner_notes ? '<p class="kv" style="margin-top:10px"><b>notes</b> ' + esc(p.owner_notes) + '</p>' : '')
|
+ (p.owner_notes ? '<p class="kv" style="margin-top:10px"><b>notes</b> ' + esc(p.owner_notes) + '</p>' : '')
|
||||||
+ '</div></div>'
|
+ '</div></div>'
|
||||||
|
|
@ -243,7 +245,7 @@ async function load() {
|
||||||
b.textContent = "Saving...";
|
b.textContent = "Saving...";
|
||||||
var res = await api("set_film_options", {
|
var res = await api("set_film_options", {
|
||||||
project_id: b.getAttribute("data-redub"),
|
project_id: b.getAttribute("data-redub"),
|
||||||
skip_redub: b.getAttribute("data-want") === "1"
|
redub_on: b.getAttribute("data-want") === "1"
|
||||||
});
|
});
|
||||||
if (!res.ok) {
|
if (!res.ok) {
|
||||||
showMsg("msg", res.error || "Could not change that.");
|
showMsg("msg", res.error || "Could not change that.");
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue