mirror of
https://codeberg.org/uzu/strudel
synced 2026-07-13 06:19:33 -04:00
only show button on user samples
This commit is contained in:
@@ -79,7 +79,7 @@ export function SoundsTab() {
|
||||
}}
|
||||
></ButtonGroup>
|
||||
</div>
|
||||
{
|
||||
{soundsFilter === soundFilterType.USER && soundEntries.length > 0 && (
|
||||
<ActionButton
|
||||
label="delete-all"
|
||||
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">
|
||||
{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>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user