mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-20 16:42:56 +00:00
refactor: remove lodash
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2021 StApps
|
||||
* Copyright (C) 2022 StApps
|
||||
* This program is free software: you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License as published by the Free
|
||||
* Software Foundation, version 3.
|
||||
@@ -17,7 +17,6 @@ import {Component, OnInit} from '@angular/core';
|
||||
import {AddEventReviewModalComponent} from '../../calendar/add-event-review-modal.component';
|
||||
import {ModalController} from '@ionic/angular';
|
||||
import {ScheduleProvider} from '../../calendar/schedule.provider';
|
||||
import {map} from 'lodash-es';
|
||||
import {Directory, Encoding, Filesystem} from '@capacitor/filesystem';
|
||||
import {Share} from '@capacitor/share';
|
||||
import {Device} from '@capacitor/device';
|
||||
@@ -99,7 +98,7 @@ export class CalendarSyncSettingsComponent implements OnInit {
|
||||
|
||||
async setSetting(settings: Partial<Record<CALENDAR_SYNC_KEYS, boolean>>) {
|
||||
await Promise.all(
|
||||
map(settings, (setting, key) =>
|
||||
Object.entries(settings).map(([key, setting]) =>
|
||||
this.storageProvider.put(calendarSettingStorageKey(key), setting),
|
||||
),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user