Skip to content

Commit

Permalink
Skip break and longbreak - schmich#351
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan6416 committed Jul 21, 2022
1 parent c195162 commit 23121e1
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
3 changes: 0 additions & 3 deletions src/Messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -697,9 +697,6 @@ class Messages
get your_history() {
return chrome.i18n.getMessage('your_history', []);
}
get cheat_sheet() {
return chrome.i18n.getMessage('cheat_sheet', []);
}
}

export default new Messages();
4 changes: 4 additions & 0 deletions src/background/Services.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@ class PomodoroService extends Service
this.timer.start();
}

async startFocus() {
this.timer.startFocus();
}

async pause() {
this.timer.pause();
}
Expand Down
9 changes: 8 additions & 1 deletion src/expire/Expire.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,12 @@
<button @click.prevent="startSession" class="button start-session" :class="phase">
{{ action }}
</button>
<button v-if="phase !== 'focus'" @click.prevent="startFocus" class="button start-session focus">
{{ M.start_focusing }}
</button>
<div class="pomodoros-today">
<p class="pomodoros">
<i v-for="_ of new Array(pomodoroCount)" class="icon-circle"></i>
<i v-for="i of new Array(pomodoroCount)" v-bind:key=i class="icon-circle"></i>
</p>
<p>{{ M.completed_today }}</p>
<button @click.prevent="showHistoryPage" class="view-history">{{ M.view_history }}</button>
Expand Down Expand Up @@ -102,6 +105,7 @@ body {
}
.start-session {
margin-top: 10px;
margin-left: 10px;
}
.pomodoros-today {
margin-top: 110px;
Expand Down Expand Up @@ -170,6 +174,9 @@ export default {
startSession() {
PomodoroClient.once.start();
},
startFocus() {
PomodoroClient.once.startFocus();
},
showHistoryPage() {
OptionsClient.once.showHistoryPage();
},
Expand Down

0 comments on commit 23121e1

Please sign in to comment.