mirror of
https://github.com/getredash/redash.git
synced 2026-05-09 03:03:08 -04:00
Update controller/view name
This commit is contained in:
@@ -157,7 +157,7 @@
|
||||
};
|
||||
|
||||
// Controller for modal window share_permissions, works for both query and dashboards, needs apiAccess set in scope
|
||||
var SharePermissionsCtrl = function ($scope, $http, $modalInstance, User) {
|
||||
var ManagePermissionsCtrl = function ($scope, $http, $modalInstance, User) {
|
||||
$scope.grantees = [];
|
||||
$scope.newGrantees = {};
|
||||
|
||||
@@ -227,5 +227,5 @@
|
||||
.controller('IndexCtrl', ['$scope', 'Events', 'Dashboard', 'Query', IndexCtrl])
|
||||
.controller('MainCtrl', ['$scope', '$location', 'Dashboard', MainCtrl])
|
||||
.controller('QuerySearchCtrl', ['$scope', '$location', '$filter', 'Events', 'Query', QuerySearchCtrl])
|
||||
.controller('SharePermissionsCtrl', ['$scope', '$http', '$modalInstance', 'User', SharePermissionsCtrl]);
|
||||
.controller('ManagePermissionsCtrl', ['$scope', '$http', '$modalInstance', 'User', ManagePermissionsCtrl]);
|
||||
})();
|
||||
|
||||
@@ -117,15 +117,15 @@
|
||||
}
|
||||
};
|
||||
|
||||
$scope.showSharePermissionsModal = function() {
|
||||
$scope.showManagePermissionsModal = function() {
|
||||
// Create scope for share permissions dialog and pass api path to it
|
||||
var scope = $scope.$new();
|
||||
$scope.apiAccess = 'api/dashboards/' + $scope.dashboard.id + '/acl';
|
||||
|
||||
$modal.open({
|
||||
scope: scope,
|
||||
templateUrl: '/views/dialogs/share_permissions.html',
|
||||
controller: 'SharePermissionsCtrl'
|
||||
templateUrl: '/views/dialogs/manage_permissions.html',
|
||||
controller: 'ManagePermissionsCtrl'
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
@@ -348,15 +348,15 @@
|
||||
$scope.selectedTab = hash || DEFAULT_TAB;
|
||||
});
|
||||
|
||||
$scope.showSharePermissionsModal = function() {
|
||||
$scope.showManagePermissionsModal = function() {
|
||||
// Create scope for share permissions dialog and pass api path to it
|
||||
var scope = $scope.$new();
|
||||
$scope.apiAccess = 'api/queries/' + $routeParams.queryId + '/acl';
|
||||
|
||||
$modal.open({
|
||||
scope: scope,
|
||||
templateUrl: '/views/dialogs/share_permissions.html',
|
||||
controller: 'SharePermissionsCtrl'
|
||||
templateUrl: '/views/dialogs/manage_permissions.html',
|
||||
controller: 'ManagePermissionsCtrl'
|
||||
})
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user