aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/DashboardView.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/views/DashboardView.tsx')
-rw-r--r--src/client/views/DashboardView.tsx10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/client/views/DashboardView.tsx b/src/client/views/DashboardView.tsx
index 472d419fc..146ac5b01 100644
--- a/src/client/views/DashboardView.tsx
+++ b/src/client/views/DashboardView.tsx
@@ -28,6 +28,7 @@ import { Colors } from './global/globalEnums';
import { MainViewModal } from './MainViewModal';
import { ButtonType } from './nodes/FontIconBox/FontIconBox';
import { ObservableReactComponent } from './ObservableReactComponent';
+import { dropActionType } from '../util/DragManager';
enum DashboardGroup {
MyDashboards,
@@ -403,7 +404,7 @@ export class DashboardView extends ObservableReactComponent<{}> {
_layout_fitWidth: true,
_gridGap: 5,
_forceActive: true,
- childDragAction: 'embed',
+ childDragAction: dropActionType.embed,
treeView_TruncateTitleWidth: 150,
ignoreClick: true,
contextMenuIcons: new List<string>(['plus']),
@@ -411,7 +412,7 @@ export class DashboardView extends ObservableReactComponent<{}> {
_lockedPosition: true,
layout_boxShadow: '0 0',
childDontRegisterViews: true,
- dropAction: 'same',
+ dropAction: dropActionType.same,
isSystem: true,
layout_explainer: 'All of the calendars that you have created will appear here.',
};
@@ -427,7 +428,6 @@ export class DashboardView extends ObservableReactComponent<{}> {
_width: 30,
_height: 30,
_dragOnlyWithinContainer: true,
- _layout_hideContextMenu: true,
title: 'New trail',
toolTip: 'Create new trail',
color: Colors.BLACK,
@@ -450,7 +450,7 @@ export class DashboardView extends ObservableReactComponent<{}> {
_layout_fitWidth: true,
_gridGap: 5,
_forceActive: true,
- childDragAction: 'embed',
+ childDragAction: dropActionType.embed,
treeView_TruncateTitleWidth: 150,
ignoreClick: true,
layout_headerButton: myTrailsBtn,
@@ -459,7 +459,7 @@ export class DashboardView extends ObservableReactComponent<{}> {
_lockedPosition: true,
layout_boxShadow: '0 0',
childDontRegisterViews: true,
- dropAction: 'same',
+ dropAction: dropActionType.same,
isSystem: true,
layout_explainer: 'All of the trails that you have created will appear here.',
};