mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2025-01-09 09:47:28 +03:00
Removed references to tagsMode setting
This commit is contained in:
parent
37caa1ad19
commit
170f45d46b
3 changed files with 0 additions and 16 deletions
|
@ -11,12 +11,5 @@ export const migrateDeprecatedSettings = (state: Partial<ShlinkState>): Partial<
|
||||||
state.settings.visits && (state.settings.visits.defaultInterval = 'last180Days');
|
state.settings.visits && (state.settings.visits.defaultInterval = 'last180Days');
|
||||||
}
|
}
|
||||||
|
|
||||||
// The "tags display mode" option has been moved from "ui" to "tags"
|
|
||||||
state.settings.tags = {
|
|
||||||
...state.settings.tags,
|
|
||||||
defaultMode: state.settings.tags?.defaultMode ?? (state.settings.ui as any)?.tagsMode,
|
|
||||||
};
|
|
||||||
state.settings.ui && delete (state.settings.ui as any).tagsMode;
|
|
||||||
|
|
||||||
return state;
|
return state;
|
||||||
};
|
};
|
||||||
|
|
|
@ -28,8 +28,6 @@ export interface ShortUrlCreationSettings {
|
||||||
forwardQuery?: boolean;
|
forwardQuery?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export type TagsMode = 'cards' | 'list';
|
|
||||||
|
|
||||||
export interface UiSettings {
|
export interface UiSettings {
|
||||||
theme: Theme;
|
theme: Theme;
|
||||||
}
|
}
|
||||||
|
@ -40,7 +38,6 @@ export interface VisitsSettings {
|
||||||
|
|
||||||
export interface TagsSettings {
|
export interface TagsSettings {
|
||||||
defaultOrdering?: TagsOrder;
|
defaultOrdering?: TagsOrder;
|
||||||
defaultMode?: TagsMode;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ShortUrlsListSettings {
|
export interface ShortUrlsListSettings {
|
||||||
|
|
|
@ -14,9 +14,6 @@ describe('settings-helpers', () => {
|
||||||
visits: {
|
visits: {
|
||||||
defaultInterval: 'last180days' as any,
|
defaultInterval: 'last180days' as any,
|
||||||
},
|
},
|
||||||
ui: {
|
|
||||||
tagsMode: 'list',
|
|
||||||
} as any,
|
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -25,9 +22,6 @@ describe('settings-helpers', () => {
|
||||||
visits: {
|
visits: {
|
||||||
defaultInterval: 'last180Days',
|
defaultInterval: 'last180Days',
|
||||||
},
|
},
|
||||||
tags: {
|
|
||||||
defaultMode: 'list',
|
|
||||||
},
|
|
||||||
}),
|
}),
|
||||||
}));
|
}));
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue