diff --git a/app/portainer/__module.js b/app/portainer/__module.js index d7992c645..df6d8cf6d 100644 --- a/app/portainer/__module.js +++ b/app/portainer/__module.js @@ -6,6 +6,7 @@ import settingsModule from './settings'; import featureFlagModule from './feature-flags'; import userActivityModule from './user-activity'; import servicesModule from './services'; +import teamsModule from './teams'; async function initAuthentication(authManager, Authentication, $rootScope, $state) { authManager.checkAuthOnRefresh(); @@ -32,6 +33,7 @@ angular userActivityModule, 'portainer.shared.datatable', servicesModule, + teamsModule, ]) .config([ '$stateRegistryProvider', diff --git a/app/portainer/components/Button/Button.tsx b/app/portainer/components/Button/Button.tsx index 666a69c46..0c1b033af 100644 --- a/app/portainer/components/Button/Button.tsx +++ b/app/portainer/components/Button/Button.tsx @@ -1,17 +1,19 @@ import { PropsWithChildren } from 'react'; import clsx from 'clsx'; -type Type = 'submit' | 'reset' | 'button'; +type Type = 'submit' | 'button' | 'reset'; type Color = 'default' | 'primary' | 'success' | 'warning' | 'danger' | 'link'; type Size = 'xsmall' | 'small' | 'medium' | 'large'; + export interface Props { - type?: Type; color?: Color; size?: Size; disabled?: boolean; title?: string; className?: string; - onClick: () => void; + dataCy?: string; + type?: Type; + onClick?: () => void; } export function Button({ @@ -20,12 +22,14 @@ export function Button({ size = 'small', disabled = false, className, + dataCy, onClick, title, children, }: PropsWithChildren) { return (