mirror of
https://github.com/nasa/openmct.git
synced 2025-06-16 06:08:11 +00:00
Fixed objects being dropped twice in fixed layout
This commit is contained in:
@ -56,9 +56,11 @@ define(
|
|||||||
}
|
}
|
||||||
|
|
||||||
function updateQueryParam(viewKey) {
|
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);
|
$location.search('view', viewKey);
|
||||||
unlisten = $scope.$on('$locationChangeSuccess', function () {
|
unlisten = $scope.$on('$locationChangeSuccess', function () {
|
||||||
// Checks path to make sure /browse/ is at front
|
// Checks path to make sure /browse/ is at front
|
||||||
|
@ -19,7 +19,6 @@
|
|||||||
"type": "telemetry.panel",
|
"type": "telemetry.panel",
|
||||||
"templateUrl": "templates/fixed.html",
|
"templateUrl": "templates/fixed.html",
|
||||||
"uses": [ "composition" ],
|
"uses": [ "composition" ],
|
||||||
"gestures": [ "drop" ],
|
|
||||||
"toolbar": {
|
"toolbar": {
|
||||||
"sections": [
|
"sections": [
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user