aboutsummaryrefslogtreecommitdiffstats
path: root/src/web
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2022-06-01 10:29:45 -0500
committerJP Dillingham <jp@dillingham.me>2022-06-01 10:29:45 -0500
commitccd0e524b7c2d60362ea272140080e5cc52ab08a (patch)
tree5808d57732e4025156695483a7f6327651ea7727 /src/web
parentc85441d966446bda8e4ca771bb74ed02c7970209 (diff)
downloadslskd-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.js7
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}/>