diff --git a/app/portainer/__module.js b/app/portainer/__module.js index c13c31ea77..21a89b2639 100644 --- a/app/portainer/__module.js +++ b/app/portainer/__module.js @@ -268,17 +268,6 @@ angular }, }; - var groupAccess = { - name: 'portainer.groups.group.access', - url: '/access', - views: { - 'content@': { - templateUrl: './views/groups/access/groupAccess.html', - controller: 'GroupAccessController', - }, - }, - }; - var home = { name: 'portainer.home', url: '/home?redirect&environmentId&environmentName&route&groupBy&groupFilter&search&order', @@ -485,7 +474,6 @@ angular $stateRegistryProvider.register(edgeAutoCreateScript); $stateRegistryProvider.register(groups); $stateRegistryProvider.register(group); - $stateRegistryProvider.register(groupAccess); $stateRegistryProvider.register(groupCreation); $stateRegistryProvider.register(home); $stateRegistryProvider.register(gitopsBase); diff --git a/app/portainer/views/groups/access/groupAccess.html b/app/portainer/views/groups/access/groupAccess.html deleted file mode 100644 index 6e11c9ba0b..0000000000 --- a/app/portainer/views/groups/access/groupAccess.html +++ /dev/null @@ -1,41 +0,0 @@ - - - -
-
- - - - - - - - - - -
Name - {{ group.Name }} -
-
-
-
-
- - diff --git a/app/portainer/views/groups/access/groupAccessController.js b/app/portainer/views/groups/access/groupAccessController.js deleted file mode 100644 index 8bd6d5954d..0000000000 --- a/app/portainer/views/groups/access/groupAccessController.js +++ /dev/null @@ -1,40 +0,0 @@ -import { FeatureId } from '@/react/portainer/feature-flags/enums'; - -angular.module('portainer.app').controller('GroupAccessController', [ - '$scope', - '$state', - '$transition$', - 'GroupService', - 'Notifications', - function ($scope, $state, $transition$, GroupService, Notifications) { - $scope.limitedFeature = FeatureId.RBAC_ROLES; - - $scope.updateAccess = function () { - $scope.state.actionInProgress = true; - GroupService.updateGroup($scope.group, $scope.group.AssociatedEndpoints) - .then(() => { - Notifications.success('Success', 'Access successfully updated'); - $state.reload(); - }) - .catch((err) => { - $scope.state.actionInProgress = false; - Notifications.error('Failure', err, 'Unable to update accesses'); - }); - }; - - function initView() { - var groupId = $transition$.params().id; - - $scope.state = { actionInProgress: false }; - GroupService.group(groupId) - .then(function success(data) { - $scope.group = data; - }) - .catch(function error(err) { - Notifications.error('Failure', err, 'Unable to load view'); - }); - } - - initView(); - }, -]); diff --git a/app/react/components/ResourceDetailHeader/ActionBarButton.tsx b/app/react/components/ResourceDetailHeader/ActionBarButton.tsx index bda75bb21b..e616e17c85 100644 --- a/app/react/components/ResourceDetailHeader/ActionBarButton.tsx +++ b/app/react/components/ResourceDetailHeader/ActionBarButton.tsx @@ -3,15 +3,19 @@ import clsx from 'clsx'; import { Button } from '@@/buttons'; -type Props = Omit, 'color' | 'size'>; +type Props = Omit, 'size'>; -export function ActionBarButton({ className, ...props }: Props) { +export function ActionBarButton({ + className, + color = 'none', + ...props +}: Props) { return (