diff options
| author | JP Dillingham <jp@dillingham.me> | 2022-06-01 10:29:45 -0500 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2022-06-01 10:29:45 -0500 |
| commit | ccd0e524b7c2d60362ea272140080e5cc52ab08a (patch) | |
| tree | 5808d57732e4025156695483a7f6327651ea7727 /src/web | |
| parent | c85441d966446bda8e4ca771bb74ed02c7970209 (diff) | |
| download | slskd-ccd0e524b7c2d60362ea272140080e5cc52ab08a.tar.gz | |
show placeholder if no shares are configured
Diffstat (limited to 'src/web')
| -rw-r--r-- | src/web/src/components/System/Shares/index.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/web/src/components/System/Shares/index.js b/src/web/src/components/System/Shares/index.js index 5fe59cb2..53018b45 100644 --- a/src/web/src/components/System/Shares/index.js +++ b/src/web/src/components/System/Shares/index.js @@ -4,6 +4,7 @@ import { toast } from 'react-toastify'; import * as sharesLib from '../../../lib/shares'; import { LoaderSegment, + PlaceholderSegment, ShrinkableButton, Switch, } from '../../Shared'; @@ -64,6 +65,12 @@ const Index = ({ state = {} } = {}) => { <Divider/> <Switch filling={(loading || filling) && <LoaderSegment caption={fillProgress}/>} + empty={shared.length === 0 && + <PlaceholderSegment + icon='share external' + caption='No shares configured' + size='small' + />} > <ShareTable shares={shared} onClick={setModal}/> <ExclusionTable exclusions={excluded}/> |
