mirror of
https://github.com/chartdb/chartdb.git
synced 2025-11-04 14:03:15 +00:00
feat(side-panel): Add functionality of order tables by drag & drop (#425)
This commit is contained in:
@@ -27,6 +27,7 @@ export interface ChartDBProviderProps {
|
||||
diagram?: Diagram;
|
||||
readonly?: boolean;
|
||||
}
|
||||
|
||||
export const ChartDBProvider: React.FC<
|
||||
React.PropsWithChildren<ChartDBProviderProps>
|
||||
> = ({ children, diagram, readonly }) => {
|
||||
@@ -310,6 +311,7 @@ export const ChartDBProvider: React.FC<
|
||||
color: randomColor(),
|
||||
createdAt: Date.now(),
|
||||
isView: false,
|
||||
order: tables.length,
|
||||
...attributes,
|
||||
};
|
||||
await addTable(table);
|
||||
|
||||
Reference in New Issue
Block a user