Browse Source

WebUI: Add "Moving" filter to side panel

PR #19870.
master
xavier2k6 1 year ago committed by GitHub
parent
commit
f067ab1692
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/webui/www/private/scripts/client.js
  2. 4
      src/webui/www/private/scripts/dynamicTable.js
  3. 1
      src/webui/www/private/views/filters.html

2
src/webui/www/private/scripts/client.js

@ -273,6 +273,7 @@ window.addEvent('load', function() { @@ -273,6 +273,7 @@ window.addEvent('load', function() {
$("stalled_uploading_filter").removeClass("selectedFilter");
$("stalled_downloading_filter").removeClass("selectedFilter");
$("checking_filter").removeClass("selectedFilter");
$("moving_filter").removeClass("selectedFilter");
$("errored_filter").removeClass("selectedFilter");
$(f + "_filter").addClass("selectedFilter");
selected_filter = f;
@ -446,6 +447,7 @@ window.addEvent('load', function() { @@ -446,6 +447,7 @@ window.addEvent('load', function() {
updateFilter('stalled_uploading', 'QBT_TR(Stalled Uploading (%1))QBT_TR[CONTEXT=StatusFilterWidget]');
updateFilter('stalled_downloading', 'QBT_TR(Stalled Downloading (%1))QBT_TR[CONTEXT=StatusFilterWidget]');
updateFilter('checking', 'QBT_TR(Checking (%1))QBT_TR[CONTEXT=StatusFilterWidget]');
updateFilter('moving', 'QBT_TR(Moving (%1))QBT_TR[CONTEXT=StatusFilterWidget]');
updateFilter('errored', 'QBT_TR(Errored (%1))QBT_TR[CONTEXT=StatusFilterWidget]');
};

4
src/webui/www/private/scripts/dynamicTable.js

@ -1378,6 +1378,10 @@ window.qBittorrent.DynamicTable = (function() { @@ -1378,6 +1378,10 @@ window.qBittorrent.DynamicTable = (function() {
if (state !== 'checkingUP' && state !== 'checkingDL' && state !== 'checkingResumeData')
return false;
break;
case 'moving':
if (state !== 'moving')
return false;
break;
case 'errored':
if (state != 'error' && state != "unknown" && state != "missingFiles")
return false;

1
src/webui/www/private/views/filters.html

@ -15,6 +15,7 @@ @@ -15,6 +15,7 @@
<li id="stalled_uploading_filter"><a href="#" onclick="setFilter('stalled_uploading');return false;"><img src="images/stalledUP.svg" alt="Stalled Uploading" />QBT_TR(Stalled Uploading (0))QBT_TR[CONTEXT=StatusFilterWidget]</a></li>
<li id="stalled_downloading_filter"><a href="#" onclick="setFilter('stalled_downloading');return false;"><img src="images/stalledDL.svg" alt="Stalled Downloading" />QBT_TR(Stalled Downloading (0))QBT_TR[CONTEXT=StatusFilterWidget]</a></li>
<li id="checking_filter"><a href="#" onclick="setFilter('checking'); return false;"><img src="images/force-recheck.svg" alt="Checking" />QBT_TR(Checking (0))QBT_TR[CONTEXT=StatusFilterWidget]</a></li>
<li id="moving_filter"><a href="#" onclick="setFilter('moving'); return false;"><img src="images/set-location.svg" alt="Moving" />QBT_TR(Moving (0))QBT_TR[CONTEXT=StatusFilterWidget]</a></li>
<li id="errored_filter"><a href="#" onclick="setFilter('errored');return false;"><img src="images/error.svg" alt="Errored" />QBT_TR(Errored (0))QBT_TR[CONTEXT=StatusFilterWidget]</a></li>
</ul>
</div>

Loading…
Cancel
Save