From 6ed719999225a6808d0fd83c2fe817433c7fc8a7 Mon Sep 17 00:00:00 2001 From: Luciano Maiwald Date: Mon, 28 Oct 2024 14:16:12 +0100 Subject: [PATCH] Add collection actions to the top of the element list --- .../apps/mydb/elements/list/ElementsList.js | 29 ++++++++++++++----- app/packs/src/apps/mydb/layout/Topbar.js | 11 ------- .../managingActions/ManagingActions.js | 2 +- 3 files changed, 22 insertions(+), 20 deletions(-) diff --git a/app/packs/src/apps/mydb/elements/list/ElementsList.js b/app/packs/src/apps/mydb/elements/list/ElementsList.js index a17220f804..caf8842386 100644 --- a/app/packs/src/apps/mydb/elements/list/ElementsList.js +++ b/app/packs/src/apps/mydb/elements/list/ElementsList.js @@ -1,6 +1,6 @@ import Immutable from 'immutable'; import React from 'react'; -import { Tabs, Tab, Tooltip, OverlayTrigger, Button } from 'react-bootstrap'; +import { Tabs, Tab, Tooltip, OverlayTrigger, Button, ButtonGroup } from 'react-bootstrap'; import KeyboardActions from 'src/stores/alt/actions/KeyboardActions'; import UIActions from 'src/stores/alt/actions/UIActions'; import UserActions from 'src/stores/alt/actions/UserActions'; @@ -14,6 +14,10 @@ import UserStore from 'src/stores/alt/stores/UserStore'; import { StoreContext } from 'src/stores/mobx/RootStore'; import ArrayUtils from 'src/utilities/ArrayUtils'; import PropTypes from 'prop-types'; +import ManagingActions from 'src/components/managingActions/ManagingActions'; +import CreateButton from 'src/components/contextActions/CreateButton'; +import SplitElementButton from 'src/components/contextActions/SplitElementButton'; +import ExportImportButton from 'src/components/contextActions/ExportImportButton'; function getSortedHash(inputHash) { const resultHash = {}; @@ -259,14 +263,23 @@ export default class ElementsList extends React.Component { Remove search result )} -
-
-