File tree Expand file tree Collapse file tree 3 files changed +27
-0
lines changed
Expand file tree Collapse file tree 3 files changed +27
-0
lines changed Original file line number Diff line number Diff line change 9090 </div >
9191 </div >
9292
93+ <div class =" settings-tab" >
94+ <input
95+ type =" radio"
96+ id =" pomodoro-tab"
97+ name =" settings-group"
98+ :checked =" selectedTab == SettingsTab.Pomodoro"
99+ v-on:change =" selectTab(SettingsTab.Pomodoro)"
100+ />
101+ <label name =" tabName" for =" pomodoro-tab"
102+ ><img src =" ../assets/icons/pomodoro.svg" height =" 30" />{{
103+ t('pomodoroMode.message')
104+ }}</label
105+ >
106+
107+ <div class =" settings-content" >
108+ <div class =" main" >
109+ <Pomodoro v-if =" selectedTab == SettingsTab.Pomodoro" />
110+ </div >
111+ </div >
112+ </div >
113+
93114 <div class =" settings-tab" >
94115 <input
95116 type =" radio"
@@ -141,6 +162,7 @@ import GeneralSettings from '../components/GeneralSettings.vue';
141162import WhiteList from ' ../components/WhiteList.vue' ;
142163import Limits from ' ../components/Limits.vue' ;
143164import DailyNotifications from ' ../components/Notifications.vue' ;
165+ import Pomodoro from ' ../components/Pomodoro.vue' ;
144166import About from ' ../components/About.vue' ;
145167import { SettingsTab } from ' ../utils/enums' ;
146168import DashboadContainer from ' ../components/DashboadContainer.vue' ;
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ export enum SettingsTab {
1717 WhiteList ,
1818 Limits ,
1919 Notifications ,
20+ Pomodoro ,
2021 About ,
2122}
2223
Original file line number Diff line number Diff line change @@ -16,6 +16,8 @@ export function getStringTab(tab: SettingsTab) {
1616 return 'whitelist' ;
1717 case SettingsTab . Notifications :
1818 return 'notifications' ;
19+ case SettingsTab . Pomodoro :
20+ return 'pomodoro' ;
1921 }
2022}
2123
@@ -35,5 +37,7 @@ export function getEnumValueTab(tab: string) {
3537 return SettingsTab . WhiteList ;
3638 case 'notifications' :
3739 return SettingsTab . Notifications ;
40+ case 'pomodoro' :
41+ return SettingsTab . Pomodoro ;
3842 }
3943}
You can’t perform that action at this time.
0 commit comments