Back to Super Productivity

Focus Mode Main.Component

src/app/features/focus-mode/focus-mode-main/focus-mode-main.component.html

18.4.41.8 KB
Original Source

@let isCountDown = isCountTimeDown(); @let ct = currentTask();@if (isShowCountdown()) { }@if (isShowModeSelector()) {

}@if (isShowSimpleCounters()) { @if (simpleCounterService.enabledSimpleCounters$ | async; as enabledSimpleCounters) { @if (enabledSimpleCounters.length) { @for ( simpleCounter of enabledSimpleCounters; track trackById($index, simpleCounter) ) { } } } }

@if (ct) { @if (ct.parentId && parentTaskTitle()) {

{{ parentTaskTitle() }}

} } @else { {{ T.F.FOCUS_MODE.SELECT_TASK_TO_FOCUS | translate }} } swap_horiz @if (ct) { done }

@if (isShowTimeAdjustButtons()) { remove } @if (focusModeService.isInOvertime()) { {{ timeElapsed() | msToMinuteClockString }} } @else if (isCountDown) { {{ focusModeService.timeRemaining() | msToMinuteClockString }} } @else { {{ timeElapsed() | msToMinuteClockString }} } @if (isShowTimeAdjustButtons()) { add } @if (isShowPauseButton()) { @if (focusModeService.isSessionPaused()) { play_arrow } @else { pause } } @if (isShowCompleteSessionButton()) { done_all } @if (isShowCompleteSessionButton() && isPomodoro()) { restart_alt } @if (isShowPomodoroSettings()) { settings } @if (focusModeService.isInOvertime()) { {{ T.F.FOCUS_MODE.OVERTIME_MSG | translate }} } @if (isShowDurationSlider()) {

} @if (isShowPlayButton()) { play_arrow } @if (isShowBottomControls()) { @if (ct && ct.issueId && ct.issueType !== ICAL_TYPE) { @if (ct.issuePoints) { {{ ct.issuePoints }} } } @if (ct) { @if (!isFocusNotes()) { chat } @if (isFocusNotes()) { expand_less } } } @if (isTaskSelectorOpen()) { } @if (isShowBottomControls() && ct && isFocusNotes()) {

expand_less

@if (ct.attachments.length) {

} } @if (ct && isDragOver()) { add {{ T.F.TASK.CMP.DROP_ATTACHMENT | translate: { title: ct.title } }} }