fix: settings dirty state tracking + toast on save/discard (#38)

This commit is contained in:
鲁树人 committed 2023-07-02 15:38:52 +01:00
1 parent 7a363d1dc5
commit 48b8932a1d
3 files changed
+54 -6

No files matched your search

@@ -4,6 +4,8 @@ import { closestByLevenshtein } from '~/util/levenshtein';
import { hasOwn } from '~/util/objects';
import { kwm2StagingToProductionKey } from './keyFormats';
export const selectIsSettingsNotSaved = (state: RootState) => state.settings.dirty;
export const selectStagingQMCv2Settings = (state: RootState) => state.settings.staging.qmc2;
export const selectFinalQMCv2Settings = (state: RootState) => state.settings.production.qmc2;