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:
Rijk van Zanten
2020-05-05 14:22:01 -04:00
committed by GitHub
parent f6d040a687
commit 70c3f05050
57 changed files with 686 additions and 116 deletions

View File

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

View File

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

View File

@@ -1,6 +1,6 @@
export type Setting = {
id: number;
key: string;
// eslint-disable-next-line @typescript-eslint/no-explicit-any
value: any;
};