[Addressability] Expose current view in query param
Expose the currently selected view as a query string parameter, WTD-1149.
This commit is contained in:
@@ -47,7 +47,14 @@ define(
|
||||
}
|
||||
}
|
||||
|
||||
function updateQueryParam(viewKey) {
|
||||
if (viewKey) {
|
||||
$location.search('view', viewKey);
|
||||
}
|
||||
}
|
||||
|
||||
$scope.$watch('domainObject', setViewForDomainObject);
|
||||
$scope.$watch('representation.selected.key', updateQueryParam);
|
||||
}
|
||||
|
||||
return BrowseObjectController;
|
||||
|
||||
Reference in New Issue
Block a user