Skip to content

Commit

Permalink
✨ Remove unused dnb setting
Browse files Browse the repository at this point in the history
  • Loading branch information
wrenger committed Jan 1, 2025
1 parent bad6de9 commit 34dd729
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
2 changes: 0 additions & 2 deletions lib-view/src/lib/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { persisted } from 'svelte-persisted-store';

export interface GlobalSettings {
borrowing_duration: number;
dnb_token: string;
mail_last_reminder: DateTime;
mail_from: string;
mail_host: string;
Expand All @@ -16,7 +15,6 @@ export interface GlobalSettings {

export const settingsGlobal = persisted<GlobalSettings>('settings-global', {
borrowing_duration: 0,
dnb_token: '',
mail_last_reminder: DateTime.now(),
mail_from: '',
mail_host: '',
Expand Down
13 changes: 0 additions & 13 deletions lib-view/src/routes/settings/Global.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
import DateInput from '$lib/components/ui/date-input/DateInput.svelte';
let borrowing_duration = '0';
let dnb_token = '';
let mail_last_reminder: DateTime = DateTime.fromISO('');
let mail_from = '';
let mail_host = '';
Expand All @@ -29,7 +28,6 @@
$: settings = {
borrowing_duration: parseInt(borrowing_duration),
dnb_token,
mail_last_reminder,
mail_from,
mail_host,
Expand All @@ -40,7 +38,6 @@
};
function set(s: GlobalSettings) {
dnb_token = s.dnb_token;
borrowing_duration = s.borrowing_duration.toString();
mail_last_reminder = s.mail_last_reminder;
mail_from = s.mail_from;
Expand Down Expand Up @@ -99,16 +96,6 @@
</Button>
</div>
<Separator />
<div class="flex w-full flex-col gap-1.5">
<Label class="text-md" for="dnb-token">{$_('.pref.request.token')}</Label>
<Input
id="dnb-token"
bind:value={dnb_token}
type="text"
placeholder={$_('.pref.request.token')}
/>
</div>
<Separator />
<DateInput
bind:date={mail_last_reminder}
min={false}
Expand Down

0 comments on commit 34dd729

Please sign in to comment.