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

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

View File

@@ -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;