This commit is contained in:
Levko Kravets 2017-11-08 11:06:53 +02:00
parent 627dc26004
commit 54ade336f5
2 changed files with 4 additions and 4 deletions

View File

@ -10,7 +10,7 @@ const dashboardGridOptions = {
outerMargin: false,
sparse: false,
isMobile: false,
mobileBreakPoint: 1200,
mobileBreakPoint: 800,
mobileModeEnabled: true,
minColumns: 1,
minRows: 1,
@ -22,11 +22,11 @@ const dashboardGridOptions = {
minSizeY: 1,
maxSizeY: null,
resizable: {
enabled: true,
enabled: false,
handles: ['n', 'e', 's', 'w', 'ne', 'se', 'sw', 'nw'],
},
draggable: {
enabled: true, // whether dragging items is supported
enabled: false,
},
};

View File

@ -57,7 +57,7 @@
</button>
<ul class="dropdown-menu pull-right" uib-dropdown-menu>
<li ng-if="!$ctrl.dashboard.is_archived"><a ng-click="$ctrl.editDashboard()">Edit Dashboard</a></li>
<li ng-if="!$ctrl.dashboard.is_archived" ng-class="{disabled: $ctrl.isGridDisabled}"><a ng-click="$ctrl.editLayout(true)">Edit Layout</a></li>
<li ng-if="!$ctrl.dashboard.is_archived" ng-class="{hidden: $ctrl.isGridDisabled}"><a ng-click="$ctrl.editLayout(true)">Edit Layout</a></li>
<li ng-if="!$ctrl.dashboard.is_archived"><a ng-click="$ctrl.addWidget()">Add Widget</a></li>
<li ng-if="$ctrl.showPermissionsControl"><a ng-click="$ctrl.showManagePermissionsModal()">Manage Permissions</a></li>
<li ng-if="!$ctrl.dashboard.is_draft"><a ng-click="$ctrl.togglePublished()">Unpublish Dashboard</a></li>