aboutsummaryrefslogtreecommitdiffstats
path: root/src/web
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2022-09-02 09:07:49 -0500
committerGitHub <noreply@github.com>2022-09-02 09:07:49 -0500
commit94d16f28dfc0228febc803fffd154357bd452a0f (patch)
treeef76f85408e11972aa11432c44081caabd9099db /src/web
parentb2611b3e94b11853f576cffce371f9ed264d4841 (diff)
parente741d7346ec260c8acdc5cd09a1aa12c4645b3dd (diff)
downloadslskd-94d16f28dfc0228febc803fffd154357bd452a0f.tar.gz
Merge pull request #622 from slskd/slots
More accurately report the number of used and available upload slots
Diffstat (limited to 'src/web')
-rw-r--r--src/web/src/components/Search/Detail/SearchDetail.js2
-rw-r--r--src/web/src/components/Search/Response.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/web/src/components/Search/Detail/SearchDetail.js b/src/web/src/components/Search/Detail/SearchDetail.js
index af61c0ca..c8bba323 100644
--- a/src/web/src/components/Search/Detail/SearchDetail.js
+++ b/src/web/src/components/Search/Detail/SearchDetail.js
@@ -85,7 +85,7 @@ const SearchDetail = ({ search, creating, stopping, removing, disabled, onCreate
})
.map(response => filterResponse({ response, filters }))
.filter(r => r.fileCount + r.lockedFileCount > 0)
- .filter(r => !(hideNoFreeSlots && r.freeUploadSlots === 0))
+ .filter(r => !(hideNoFreeSlots && !r.hasFreeUploadSlot))
.sort((a, b) => {
if (order === 'asc') {
return a[field] - b[field];
diff --git a/src/web/src/components/Search/Response.js b/src/web/src/components/Search/Response.js
index 6bc8feb0..1e3dfcbd 100644
--- a/src/web/src/components/Search/Response.js
+++ b/src/web/src/components/Search/Response.js
@@ -65,7 +65,7 @@ class Response extends Component {
render = () => {
let {response} = this.props;
- let free = response.freeUploadSlots > 0;
+ let free = response.hasFreeUploadSlot;
let { tree, downloadRequest, downloadError, isFolded } = this.state;