@@ -38,29 +38,61 @@ <h3 class="md-caption">Sync via Google Drive</h3>
3838  < div > 
3939    < md-button  class ="md-raised md-primary "
4040               ng-show ="!vm.isLoggedIn "
41-                ng-click ="vm.login() "> Login
41+                ng-click ="vm.login() "> 
42+       < ng-md-icon  icon ="login "> </ ng-md-icon > 
43+       Login
4244    </ md-button > 
4345    < md-button  class ="md-raised md-primary "
4446               ng-show ="vm.isLoggedIn "
45-                ng-click ="vm.logout() "> Logout
47+                ng-click ="vm.logout() "> 
48+       < ng-md-icon  icon ="logout "> </ ng-md-icon > 
49+       Logout
4650    </ md-button > 
51+ 
4752    < md-button  class ="md-raised md-primary "
4853               ng-show ="vm.isLoggedIn "
4954               external-link 
5055               target ="_blank "
51-                href ="https://myaccount.google.com/permissions "> Revoke permissions
56+                href ="https://myaccount.google.com/permissions "> 
57+       < ng-md-icon  icon ="remove_circle "> </ ng-md-icon > 
58+       Revoke permissions
5259    </ md-button > 
5360    < md-button  class ="md-raised md-primary "
5461               ng-show ="vm.isLoggedIn "
55-                ng-click ="vm.test() "> TEST
62+                ng-click ="vm.backupNow() "> 
63+       < ng-md-icon  icon ="backup "> </ ng-md-icon > 
64+       Save Backup now
5665    </ md-button > 
5766  </ div > 
67+ 
68+   < div > 
69+     < md-switch  ng-model ="vm.settings.googleDriveSync.isAutoLogin "
70+                aria-label ="Auto login at when starting app "> 
71+       Auto login at when starting app
72+     </ md-switch > 
73+   </ div > 
5874  < div > 
59-     < md-switch  ng-model ="vm.settings.isAutoStartNextTask  "
60-                aria-label ="Auto sync tasks  "> 
61-       Auto sync tasks 
75+     < md-switch  ng-model ="vm.settings.googleDriveSync.isAutoSyncToRemote  "
76+                aria-label ="Auto sync to remote  "> 
77+       Auto sync to remote 
6278    </ md-switch > 
6379  </ div > 
80+   < div > 
81+     < md-switch  ng-model ="vm.settings.googleDriveSync.isAutoSyncFromRemote "
82+                aria-label ="Auto sync from remote "> 
83+       Auto sync from remote
84+     </ md-switch > 
85+   </ div > 
86+   < md-input-container  class ="md-block md-icon-float "
87+                       ng-show ="vm.settings.googleDriveSync.isAutoSyncToRemote || vm.settings.googleDriveSync.isAutoSyncFromRemote "> 
88+     < label > Remind when I worked longer than X without a break</ label > 
89+     < ng-md-icon  icon ="timer "
90+                 aria-label ="timer "> </ ng-md-icon > 
91+     < input  type ="text "
92+            input-duration 
93+            ng-model ="vm.settings.googleDriveSync.syncInterval "> 
94+   </ md-input-container > 
95+ 
6496</ section > 
6597
6698
@@ -86,7 +118,7 @@ <h3 class="md-caption">Sync via Google Drive</h3>
86118< section  ng-if ="vm.IS_ELECTRON "> 
87119  < h3  class ="md-caption "> Automatic Backups</ h3 > 
88120  < div > 
89-     < md-switch  ng-model ="vm.settings.isEnabled "
121+     < md-switch  ng-model ="vm.settings.automaticBackups. isEnabled "
90122               aria-label ="Enable automatic backups "> 
91123      Enable automatic backups
92124    </ md-switch > 
@@ -95,22 +127,22 @@ <h3 class="md-caption">Automatic Backups</h3>
95127  < p > < strong > NOTE:</ strong >  Changes to automated backup settings require you to restart the application to take effect.
96128  </ p > 
97129
98-   < div  ng-show ="vm.settings.isEnabled "> 
130+   < div  ng-show ="vm.settings.automaticBackups. isEnabled "> 
99131    < md-input-container  class ="md-block "> 
100132      < label > Interval in seconds to make backups</ label > 
101133      < input  type ="number "
102-              ng-model ="vm.settings.intervalInSeconds "> 
134+              ng-model ="vm.settings.automaticBackups. intervalInSeconds "> 
103135    </ md-input-container > 
104136    < md-input-container  class ="md-block "> 
105137      < label > Path to backup (e.g. ~/backup-{date}.json)</ label > 
106138      < input  type ="text "
107-              ng-model ="vm.settings.path "> 
139+              ng-model ="vm.settings.automaticBackups. path "> 
108140    </ md-input-container > 
109141  </ div > 
110142
111143  < h3  class ="md-caption "> Automatic Sync</ h3 > 
112144  < div > 
113-     < md-switch  ng-model ="vm.settings.isSyncEnabled "
145+     < md-switch  ng-model ="vm.settings.automaticBackups. isSyncEnabled "
114146               aria-label ="Enable automatic backups "> 
115147      Enable auto sync
116148    </ md-switch > 
@@ -120,11 +152,11 @@ <h3 class="md-caption">Automatic Sync</h3>
120152    < strong > a highly experimental feature!!!</ strong >  Take care! Make a backup! Changes to the sync settings require you to restart the application to take effect.
121153  </ p > 
122154
123-   < div  ng-show ="vm.settings.isSyncEnabled "> 
155+   < div  ng-show ="vm.settings.automaticBackups. isSyncEnabled "> 
124156    < md-input-container  class ="md-block "> 
125157      < label > Path to sync file</ label > 
126158      < input  type ="text "
127-              ng-model ="vm.settings.syncPath "> 
159+              ng-model ="vm.settings.automaticBackups. syncPath "> 
128160    </ md-input-container > 
129161  </ div > 
130162</ section > 
0 commit comments