mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-25 08:59:13 +00:00
apply to Timer view
This commit is contained in:
@@ -81,7 +81,7 @@ export function getFormattedTimer(
|
|||||||
localisedMinutes: string,
|
localisedMinutes: string,
|
||||||
options: FormattingOptions,
|
options: FormattingOptions,
|
||||||
): string {
|
): string {
|
||||||
if (timer == null) {
|
if (timer == null || timerType === TimerType.None) {
|
||||||
return options.removeSeconds ? timerPlaceholderMin : timerPlaceholder;
|
return options.removeSeconds ? timerPlaceholderMin : timerPlaceholder;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -98,7 +98,7 @@ export function getFormattedTimer(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let display = millisToString(timeToParse);
|
let display = millisToString(timeToParse, { direction: timerType });
|
||||||
if (options.removeLeadingZero) {
|
if (options.removeLeadingZero) {
|
||||||
display = removeLeadingZero(display);
|
display = removeLeadingZero(display);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user