aboutsummaryrefslogtreecommitdiff
path: root/src/client/util/CurrentUserUtils.ts
diff options
context:
space:
mode:
authoreperelm2 <90427875+eperelm2@users.noreply.github.com>2023-07-18 12:39:36 -0400
committerGitHub <noreply@github.com>2023-07-18 12:39:36 -0400
commitf8d6a1433716de4b2a04a41e5c7b63e1d498bb9c (patch)
tree77979c060c7a460dc4ad82758a5cc39eab9d53c1 /src/client/util/CurrentUserUtils.ts
parent68c122134ec62e753140f5b0314cc5d430484803 (diff)
parentc4fcc7fc89412fe294a3bc0a001fdd9433609f8b (diff)
Merge pull request #186 from brown-dash/secondpropertiesmenu-emily
Secondpropertiesmenu emily
Diffstat (limited to 'src/client/util/CurrentUserUtils.ts')
-rw-r--r--src/client/util/CurrentUserUtils.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/client/util/CurrentUserUtils.ts b/src/client/util/CurrentUserUtils.ts
index cc917fd4d..d93ee9a2e 100644
--- a/src/client/util/CurrentUserUtils.ts
+++ b/src/client/util/CurrentUserUtils.ts
@@ -30,6 +30,8 @@ import { LinkManager } from "./LinkManager";
import { ScriptingGlobals } from "./ScriptingGlobals";
import { ColorScheme, SettingsManager } from "./SettingsManager";
import { UndoManager } from "./UndoManager";
+import { PresElementBox } from "../views/nodes/trails";
+import { ImportElementBox } from "../views/nodes/importBox/importElementBox";
interface Button {
// DocumentOptions fields a button can set
@@ -809,8 +811,9 @@ export class CurrentUserUtils {
/// Import option on the left side button panel
static setupImportSidebar(doc: Doc, field:string) {
+ // PresElementBox.LayoutString('data')
const reqdOpts:DocumentOptions = {
- title: "My Imports", _forceActive: true, ignoreClick: true, _layout_showTitle: "title",
+ title: "My Imports", _forceActive: true, ignoreClick: true, _layout_showTitle: "title", childLayoutString: ImportElementBox.LayoutString('data'),
_dragOnlyWithinContainer: true, _layout_hideContextMenu: true, childLimitHeight: 0,
childDragAction: "copy", _layout_autoHeight: true, _yMargin: 50, _gridGap: 15, layout_boxShadow: "0 0", _lockedPosition: true, isSystem: true, _chromeHidden: true,
dontRegisterView: true, layout_explainer: "This is where documents that are Imported into Dash will go."