Skip to content

Commit e1a95bd

Browse files
committed
fix: consistent active onair
use Cancel instead of no other rundown is active use cancel as default
1 parent 7274b8c commit e1a95bd

File tree

2 files changed

+20
-6
lines changed

2 files changed

+20
-6
lines changed

packages/webui/src/client/styles/modalDialog.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
padding: 0;
55
border: none;
66
pointer-events: auto;
7-
min-width: 500px;
7+
min-width: 550px;
88

99
.big {
10-
max-width: 500px;
10+
max-width: 550px;
1111
width: 100%;
1212
}
1313

packages/webui/src/client/ui/RundownView.tsx

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -249,8 +249,8 @@ const WarningDisplay = withTranslation()(
249249
return (
250250
<ModalDialog
251251
title={t('Start time is close')}
252-
acceptText={t('Yes')}
253-
secondaryText={t('No')}
252+
acceptText={t('Activate "On Air"')}
253+
secondaryText={t('Cancel')}
254254
onAccept={this.oneMinuteBeforeAction}
255255
onDiscard={this.discard}
256256
onSecondary={this.discard}
@@ -638,6 +638,7 @@ const RundownHeader = withTranslation()(
638638
),
639639
yes: t('Activate "On Air"'),
640640
no: t('Cancel'),
641+
discardAsPrimary: true,
641642
actions: [
642643
{
643644
label: t('Activate "Rehearsal"'),
@@ -724,9 +725,19 @@ const RundownHeader = withTranslation()(
724725
doModalDialog({
725726
title: 'Activate "On Air"',
726727
message: t('Do you want to activate this Rundown?'),
727-
yes: 'Activate "On Air"',
728+
yes: 'Reset and Activate "On Air"',
729+
no: t('Cancel'),
730+
actions: [
731+
{
732+
label: 'Activate "On Air"',
733+
classNames: 'btn-secondary',
734+
on: () => {
735+
doActivate() // this one activates without resetting
736+
},
737+
},
738+
],
739+
acceptOnly: false,
728740
onAccept: () => {
729-
this.rewindSegments()
730741
doUserAction(
731742
t,
732743
e,
@@ -754,6 +765,7 @@ const RundownHeader = withTranslation()(
754765
title: 'Activate "On Air"',
755766
message: t('The planned end time has passed, are you sure you want to activate this Rundown?'),
756767
yes: 'Reset and Activate "On Air"',
768+
no: t('Cancel'),
757769
actions: [
758770
{
759771
label: 'Activate "On Air"',
@@ -826,6 +838,7 @@ const RundownHeader = withTranslation()(
826838
title: 'Activate "Rehearsal"',
827839
message: t('Are you sure you want to activate Rehearsal Mode?'),
828840
yes: 'Activate "Rehearsal"',
841+
no: t('Cancel'),
829842
onAccept: () => {
830843
doActivateRehersal()
831844
},
@@ -841,6 +854,7 @@ const RundownHeader = withTranslation()(
841854
title: 'Activate "Rehearsal"',
842855
message: t('Are you sure you want to activate Rehearsal Mode?'),
843856
yes: 'Activate "Rehearsal"',
857+
no: t('Cancel'),
844858
onAccept: () => {
845859
doActivateRehersal()
846860
},

0 commit comments

Comments
 (0)