Skip to content

Commit edf37f7

Browse files
committed
added disabled for edit&delete button for teams based on permissions
1 parent 3936cf4 commit edf37f7

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/components/Teams/Team.jsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ export function Team(props) {
5757
props.onEditTeam(props.name, props.teamId, props.active, props.teamCode);
5858
}}
5959
style={darkMode ? {} : boxStyle}
60+
disabled={!canPutTeam}
6061
>
6162
Edit
6263
</Button>
@@ -69,6 +70,7 @@ export function Team(props) {
6970
props.onDeleteClick(props.name, props.teamId, props.active, props.teamCode);
7071
}}
7172
style={darkMode ? boxStyleDark : boxStyle}
73+
disabled={!canDeleteTeam}
7274
>
7375
{DELETE}
7476
</Button>

0 commit comments

Comments
 (0)