fix(git): label branch rename buttons (#1239)
Co-authored-by: Isaac Sanchez <isanchez-hawkins@arize.com>
This commit is contained in:
committed by
GitHub
co-authored by
Isaac Sanchez
parent
ebf87f64dc
commit
7506b736dd
@@ -99,6 +99,8 @@ export const WorktreeBranchDisplay: React.FC<WorktreeBranchDisplayProps> = ({
|
||||
<button
|
||||
type="submit"
|
||||
disabled={isRenaming}
|
||||
aria-label={isRenaming ? t('gitView.branch.renameSaving') : t('gitView.branch.renameSave')}
|
||||
title={isRenaming ? t('gitView.branch.renameSaving') : t('gitView.branch.renameSave')}
|
||||
className="shrink-0 text-muted-foreground hover:text-foreground disabled:opacity-50"
|
||||
>
|
||||
{isRenaming ? (
|
||||
@@ -111,6 +113,8 @@ export const WorktreeBranchDisplay: React.FC<WorktreeBranchDisplayProps> = ({
|
||||
type="button"
|
||||
onClick={handleCancelEdit}
|
||||
disabled={isRenaming}
|
||||
aria-label={t('gitView.branch.renameCancel')}
|
||||
title={t('gitView.branch.renameCancel')}
|
||||
className="shrink-0 text-muted-foreground hover:text-foreground disabled:opacity-50"
|
||||
>
|
||||
<RiCloseLine className="size-4" />
|
||||
|
||||
Reference in New Issue
Block a user