Skip to content

Commit

Permalink
feat: move to top, ziahamza/webui-aria2#500
Browse files Browse the repository at this point in the history
  • Loading branch information
soulteary committed Oct 27, 2024
1 parent 9733e34 commit 92e6c50
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/index-template.html
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,11 @@
<a ng-click="remove(download)"
href="#"><svg class="icon icon-fw"><use xlink:href="#icon-times"></use></svg> {{ 'Remove' | translate }}</a>
</li>

<li class="visible-phone">
<a ng-click="moveToTop(download)"
href="#"><svg class="icon icon-fw"><use xlink:href="#icon-arrow-circle-o-up"></use></svg> {{ 'Move to Top' | translate }}</a>
</li>
</ul>
</div>
</div>
Expand Down
3 changes: 3 additions & 0 deletions src/js/ctrls/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -686,6 +686,9 @@ export default angular
scope.moveUp = function(d) {
rpc.once("changePosition", [d.gid, -1, "POS_CUR"]);
};
scope.moveToTop = function(d) {
rpc.once("changePosition", [d.gid, 0, "POS_SET"]);
};
}
])
.filter("objFilter", function() {
Expand Down

0 comments on commit 92e6c50

Please sign in to comment.