Skip to content

Commit

Permalink
Merge pull request #2315 from headlamp-k8s/namespace-create-button-label
Browse files Browse the repository at this point in the history
frontend: Refactor labels for create namespace button
  • Loading branch information
joaquimrocha authored Sep 25, 2024
2 parents 63f6229 + 8becdd6 commit 03cd085
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions frontend/src/components/namespace/CreateNamespaceButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,9 @@ export default function CreateNamespaceButton() {
return (
<AuthVisible item={Namespace} authVerb="create">
<ActionButton
data-testid="create-namespace-button"
color="primary"
description={t('translation|Create')}
description={t('translation|Create Namespace')}
icon={'mdi:plus-circle'}
onClick={() => {
setNamespaceDialogOpen(true);
Expand Down Expand Up @@ -143,15 +144,15 @@ export default function CreateNamespaceButton() {
</DialogContent>
<DialogActions>
<Button
aria-label="Cancel"
data-testid="create-namespace-dialog-cancel-button"
onClick={() => {
setNamespaceDialogOpen(false);
}}
>
{t('translation|Cancel')}
</Button>
<Button
aria-label="Create"
data-testid="create-namespace-dialog-create-button"
disabled={!isValidNamespaceName}
onClick={() => {
createNewNamespace();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
class="MuiBox-root css-ldp2l3"
>
<button
aria-label="Create"
aria-label="Create Namespace"
class="MuiButtonBase-root MuiIconButton-root MuiIconButton-sizeMedium css-whz9ym-MuiButtonBase-root-MuiIconButton-root"
data-mui-internal-clone-element="true"
tabindex="0"
Expand Down

0 comments on commit 03cd085

Please sign in to comment.