remove unused stuff in backendUiStore
This commit is contained in:
parent
c77061f239
commit
c924e03519
|
@ -1,20 +1,9 @@
|
||||||
import { writable } from "svelte/store"
|
import { writable } from "svelte/store"
|
||||||
import api from "../api"
|
|
||||||
|
|
||||||
const INITIAL_BACKEND_UI_STATE = {
|
|
||||||
tables: [],
|
|
||||||
views: [],
|
|
||||||
datasources: [],
|
|
||||||
selectedDatabase: {},
|
|
||||||
selectedTable: {},
|
|
||||||
draftTable: {},
|
|
||||||
}
|
|
||||||
|
|
||||||
export const getBackendUiStore = () => {
|
export const getBackendUiStore = () => {
|
||||||
const store = writable({ ...INITIAL_BACKEND_UI_STATE })
|
const store = writable({})
|
||||||
|
|
||||||
store.actions = {
|
store.actions = {
|
||||||
reset: () => store.set({ ...INITIAL_BACKEND_UI_STATE }),
|
|
||||||
rows: {
|
rows: {
|
||||||
save: () =>
|
save: () =>
|
||||||
store.update(state => {
|
store.update(state => {
|
||||||
|
|
Loading…
Reference in New Issue