Prevent early TempRadio command copying
This commit is contained in:
1 parent
b0e84263f4
commit
4e47ca9057
2 files changed
+17
-2
No files matched your search
@@ -329,8 +329,16 @@
|
||||
setText(root, '[data-role="countdown-detail"]', "Temporary radios should be back on saved settings.");
|
||||
}
|
||||
|
||||
setCommand(root, "stock-now", commands.stockNow);
|
||||
setCommand(root, "companion-now", commands.companionNow);
|
||||
if (phase === "active") {
|
||||
setCommand(root, "stock-now", commands.stockNow);
|
||||
setCommand(root, "companion-now", commands.companionNow);
|
||||
} else {
|
||||
const unavailable = phase === "before"
|
||||
? "Available when the test starts — use Option 2 to schedule now."
|
||||
: "Test window ended — do not start TempRadio.";
|
||||
setCommand(root, "stock-now", unavailable);
|
||||
setCommand(root, "companion-now", unavailable);
|
||||
}
|
||||
setCommandEnabled(root, "stock-now", phase === "active");
|
||||
setCommandEnabled(root, "companion-now", phase === "active");
|
||||
setText(
|
||||
|
||||
@@ -184,6 +184,13 @@
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
/* Material adds its own copier to every code block. This page supplies
|
||||
state-aware copy buttons, so the generic buttons would bypass disabled
|
||||
pre-start commands and duplicate every enabled action. */
|
||||
.preset-test .md-clipboard {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.preset-test button {
|
||||
border: 0;
|
||||
border-radius: 0.25rem;
|
||||
|
||||
Reference in new issue
Block a user