Skip to content

Commit

Permalink
Add new update frequency options (#1000)
Browse files Browse the repository at this point in the history
  • Loading branch information
harshithmohan authored Aug 20, 2024
1 parent e890614 commit 5d702f9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/core/types/api/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ export type SettingsAnidbMylistType = {
MyList_StorageState: MyListStorageState;
};

// Never = 1, HoursSix = 2, HoursTwelve = 3, Daily = 4, WeekOne = 5, MonthOne = 6
export type SettingsUpdateFrequencyType = 1 | 2 | 3 | 4 | 5 | 6;
// Never = 1, HoursSix = 2, HoursTwelve = 3, Daily = 4, WeekOne = 5, MonthOne = 6, HoursThree = 7, HoursOne = 8
export type SettingsUpdateFrequencyType = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8;

export type SettingsAnidbUpdateType = {
Calendar_UpdateFrequency: SettingsUpdateFrequencyType;
Expand Down
4 changes: 3 additions & 1 deletion src/pages/settings/tabs/AniDBSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ import useSettingsContext from '@/hooks/useSettingsContext';
const UpdateFrequencyValues = () => (
<>
<option value={1}>Never</option>
<option value={8}>Every Hour</option>
<option value={7}>Every 3 Hours</option>
<option value={2}>Every 6 Hours</option>
<option value={3}>Every 12 Hours</option>
<option value={4}>Every 24 Hours</option>
Expand Down Expand Up @@ -313,7 +315,7 @@ function AniDBSettings() {
<div className="flex items-center justify-between">
<span>Notifications</span>
<SelectSmall
id=" notifications"
id="notifications"
value={Notification_UpdateFrequency}
onChange={event => updateSetting('AniDb', 'Notification_UpdateFrequency', event.target.value)}
>
Expand Down

0 comments on commit 5d702f9

Please sign in to comment.