mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-12 00:15:44 +01:00
Render disabled buttons as disabled (#1858)
This commit is contained in:
2
gradle/changelog/disabled_buttons.yaml
Normal file
2
gradle/changelog/disabled_buttons.yaml
Normal 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))
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user