(type: PomodoroSession["type"])
| 1203 | } |
| 1204 | |
| 1205 | private getSessionTypeLabel(type: PomodoroSession["type"]): string { |
| 1206 | if (type === "work") { |
| 1207 | return this.t("views.pomodoro.status.focus"); |
| 1208 | } |
| 1209 | |
| 1210 | if (type === "short-break") { |
| 1211 | return this.t("views.pomodoro.status.shortBreak"); |
| 1212 | } |
| 1213 | |
| 1214 | return this.t("views.pomodoro.status.longBreak"); |
| 1215 | } |
| 1216 | |
| 1217 | private canEditTimer(): boolean { |
| 1218 | const state = this.plugin.pomodoroService?.getState(); |