mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
Interface many to one (#524)
* Start on m2o * Render preview in m2o * Add icons * Style inline icons * Add editing modal * Disable any linter * Add add-new button * Pass existing selection on to layout * Update v-table to allow for keys-only-selection * Fix batch on tabular
This commit is contained in:
@@ -37,8 +37,8 @@ export type CollectionPreset = {
|
||||
search_query: string | null;
|
||||
filters: readonly Filter[] | null;
|
||||
view_type: string | null;
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
|
||||
view_query: { [view_type: string]: any } | null;
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
|
||||
view_options: { [view_type: string]: any } | null;
|
||||
};
|
||||
|
||||
@@ -35,7 +35,7 @@ export const useSettingsStore = createStore({
|
||||
async dehydrate() {
|
||||
this.reset();
|
||||
},
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
|
||||
async updateSettings(updates: { [key: string]: any }) {
|
||||
const projectsStore = useProjectsStore();
|
||||
const currentProjectKey = projectsStore.state.currentProjectKey;
|
||||
@@ -79,7 +79,6 @@ export const useSettingsStore = createStore({
|
||||
|
||||
this.state.settings = this.state.settings.map((setting) => {
|
||||
const updated = response.data.data.find(
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
(update: any) => update.id === setting.id
|
||||
);
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
export type Setting = {
|
||||
id: number;
|
||||
key: string;
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
|
||||
value: any;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user