Merge pull request #5731 from ArcticCoder/develop
Add disabled pattern delete button when no patterns selected
This commit is contained in:
commit
17f2958502
1 changed files with 3 additions and 5 deletions
|
@ -581,11 +581,9 @@ export const Patterns = () => {
|
||||||
{t('patternNew')}
|
{t('patternNew')}
|
||||||
</Link>
|
</Link>
|
||||||
</p>
|
</p>
|
||||||
{selCount ? (
|
<button className="btn btn-error" onClick={removeSelectedPatterns} disabled={selCount < 1}>
|
||||||
<button className="btn btn-error" onClick={removeSelectedPatterns}>
|
|
||||||
<TrashIcon /> {selCount} {t('patterns')}
|
<TrashIcon /> {selCount} {t('patterns')}
|
||||||
</button>
|
</button>
|
||||||
) : null}
|
|
||||||
<TableWrapper>
|
<TableWrapper>
|
||||||
<table className="table table-auto">
|
<table className="table table-auto">
|
||||||
<thead className="border border-base-300 border-b-2 border-t-0 border-x-0">
|
<thead className="border border-base-300 border-b-2 border-t-0 border-x-0">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue