Add disabled pattern delete button when no patterns selected
This commit is contained in:
parent
8d05c47edb
commit
2986e42c53
1 changed files with 5 additions and 1 deletions
|
@ -585,7 +585,11 @@ export const Patterns = () => {
|
|||
<button className="btn btn-error" onClick={removeSelectedPatterns}>
|
||||
<TrashIcon /> {selCount} {t('patterns')}
|
||||
</button>
|
||||
) : null}
|
||||
) : (
|
||||
<button className="btn" onClick={null}>
|
||||
<TrashIcon /> {selCount} {t('patterns')}
|
||||
</button>
|
||||
)}
|
||||
<TableWrapper>
|
||||
<table className="table table-auto">
|
||||
<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