diff --git a/rd_ui/app/scripts/controllers/dashboard.js b/rd_ui/app/scripts/controllers/dashboard.js index 9f57f6ae0..87508fd03 100644 --- a/rd_ui/app/scripts/controllers/dashboard.js +++ b/rd_ui/app/scripts/controllers/dashboard.js @@ -119,8 +119,7 @@ $scope.showSharePermissionsModal = function() { // Create scope for share permissions dialog and pass api path to it var scope = $scope.$new(); - $scope.api_access = 'api/dashboards/' + $scope.dashboard.id + '/acl'; - scope.params = {api_access: $scope.api_access}; + $scope.apiAccess = 'api/dashboards/' + $scope.dashboard.id + '/acl'; $modal.open({ scope: scope, diff --git a/rd_ui/app/scripts/controllers/query_view.js b/rd_ui/app/scripts/controllers/query_view.js index 56797719b..a498264a9 100644 --- a/rd_ui/app/scripts/controllers/query_view.js +++ b/rd_ui/app/scripts/controllers/query_view.js @@ -343,8 +343,7 @@ $scope.showSharePermissionsModal = function() { // Create scope for share permissions dialog and pass api path to it var scope = $scope.$new(); - $scope.api_access = 'api/queries/' + $routeParams.queryId + '/acl'; - scope.params = {api_access: $scope.api_access}; + $scope.apiAccess = 'api/queries/' + $routeParams.queryId + '/acl'; $modal.open({ scope: scope, diff --git a/rd_ui/app/views/dialogs/share_permissions.html b/rd_ui/app/views/dialogs/share_permissions.html index e05181c5b..38c06bfbe 100644 --- a/rd_ui/app/views/dialogs/share_permissions.html +++ b/rd_ui/app/views/dialogs/share_permissions.html @@ -1,6 +1,6 @@