only show button on user samples
This commit is contained in:
parent
e7e80bfd83
commit
5414bbe85d
1 changed files with 3 additions and 3 deletions
|
|
@ -79,7 +79,7 @@ export function SoundsTab() {
|
||||||
}}
|
}}
|
||||||
></ButtonGroup>
|
></ButtonGroup>
|
||||||
</div>
|
</div>
|
||||||
{
|
{soundsFilter === soundFilterType.USER && soundEntries.length > 0 && (
|
||||||
<ActionButton
|
<ActionButton
|
||||||
label="delete-all"
|
label="delete-all"
|
||||||
onClick={async () => {
|
onClick={async () => {
|
||||||
|
|
@ -95,7 +95,7 @@ export function SoundsTab() {
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
}
|
)}
|
||||||
|
|
||||||
<div className="min-h-0 max-h-full grow overflow-auto text-sm break-normal pb-2">
|
<div className="min-h-0 max-h-full grow overflow-auto text-sm break-normal pb-2">
|
||||||
{soundEntries.map(([name, { data, onTrigger }]) => {
|
{soundEntries.map(([name, { data, onTrigger }]) => {
|
||||||
|
|
@ -174,7 +174,7 @@ export function SoundsTab() {
|
||||||
) : (
|
) : (
|
||||||
''
|
''
|
||||||
)}
|
)}
|
||||||
{!soundEntries.length && soundsFilter !== 'importSounds' ? 'No custom sounds loaded (yet).' : ''}
|
{!soundEntries.length && soundsFilter !== 'importSounds' ? 'No sounds loaded' : ''}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue