Render disabled buttons as disabled (#1858)

This commit is contained in:
René Pfeuffer
2021-11-16 06:57:57 +01:00
committed by GitHub
parent 749c08c83f
commit 0530e3864f
2 changed files with 3 additions and 1 deletions

View File

@@ -0,0 +1,2 @@
- type: fixed
description: Disabled buttons are rendered as disabled buttons, again ([#1858](https://github.com/scm-manager/scm-manager/pull/1858))

View File

@@ -67,7 +67,7 @@ const Button: FC<Props> = ({
return <>{icon ? <Icon name={icon} color="inherit" className="is-medium pr-1" /> : null}</>;
};
if (link) {
if (link && !disabled) {
return (
<Link
className={classNames(