fix(Core): fixed lazy delete settings

This commit is contained in:
Dmitry Popov
2025-03-15 23:44:57 +01:00
parent 30fecf6428
commit e9b4e39061
4 changed files with 10 additions and 3 deletions

View File

@@ -152,7 +152,7 @@ export const SystemSignaturesContent = ({
(e: { value: SystemSignature[] }) => {
selectable ? onSelect?.(e.value[0]) : setSelectedSignatures(e.value as ExtendedSystemSignature[]);
},
[selectable, onSelect],
[selectable],
);
const { showDescriptionColumn, showUpdatedColumn, showCharacterColumn, showCharacterPortrait } = useMemo(

View File

@@ -180,7 +180,7 @@ export const SETTINGS_VALUES: SignatureSettingsType = {
[SETTINGS_KEYS.SHOW_DESCRIPTION_COLUMN]: true,
[SETTINGS_KEYS.SHOW_CHARACTER_COLUMN]: true,
[SETTINGS_KEYS.LAZY_DELETE_SIGNATURES]: true,
[SETTINGS_KEYS.KEEP_LAZY_DELETE]: true,
[SETTINGS_KEYS.KEEP_LAZY_DELETE]: false,
[SETTINGS_KEYS.DELETION_TIMING]: SIGNATURES_DELETION_TIMING.DEFAULT,
[SETTINGS_KEYS.COLOR_BY_TYPE]: true,
[SETTINGS_KEYS.SHOW_CHARACTER_PORTRAIT]: true,

View File

@@ -88,7 +88,7 @@ export const useSystemSignaturesData = ({
}
}
const keepLazy = settings[SETTINGS_KEYS.LAZY_DELETE_SIGNATURES] as boolean;
const keepLazy = settings[SETTINGS_KEYS.KEEP_LAZY_DELETE] as boolean;
if (lazyDeleteValue && !keepLazy) {
onLazyDeleteChange?.(false);
}

View File

@@ -47,6 +47,13 @@ defmodule WandererApp.Api.MapSystemSignature do
create :create do
primary? true
upsert? true
upsert_identity :uniq_system_eve_id
upsert_fields [
:system_id,
:eve_id
]
accept [
:system_id,