MCPcopy
hub / github.com/callumalpass/tasknotes / getSessionTypeLabel

Method getSessionTypeLabel

src/views/PomodoroView.ts:1205–1215  ·  view source on GitHub ↗
(type: PomodoroSession["type"])

Source from the content-addressed store, hash-verified

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();

Callers 1

updateSessionMetaMethod · 0.95

Calls 1

tMethod · 0.95

Tested by

no test coverage detected