Fixed objects being dropped twice in fixed layout

This commit is contained in:
Henry 2015-11-27 15:21:24 -08:00
parent 9a42cb4f7e
commit 6fb6f54cfa
2 changed files with 4 additions and 3 deletions

View File

@ -56,9 +56,11 @@ define(
}
function updateQueryParam(viewKey) {
var unlisten, priorRoute = $route.current;
var unlisten,
priorRoute = $route.current,
editMode = $scope.domainObject && $scope.domainObject.hasCapability('editor');
if (viewKey) {
if (viewKey && !editMode) {
$location.search('view', viewKey);
unlisten = $scope.$on('$locationChangeSuccess', function () {
// Checks path to make sure /browse/ is at front

View File

@ -19,7 +19,6 @@
"type": "telemetry.panel",
"templateUrl": "templates/fixed.html",
"uses": [ "composition" ],
"gestures": [ "drop" ],
"toolbar": {
"sections": [
{