Skip to content

Commit

Permalink
Add reset button
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian Bishop committed Jun 9, 2018
1 parent 1a741e3 commit 816cafc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions static/files/js/omni-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,11 @@ app.controller("OmniController", function(
}
};

$scope.resetOmni = function() {
$scope.inputs.omni = '';
$scope.parse();
};

$scope.submitTorrent = function() {
if ($scope.mode.torrent) {
api.url($scope.inputs.omni);
Expand Down
1 change: 1 addition & 0 deletions static/files/template/omni.html
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ <h4 class="ui dividing header">Magnet URI Editor</h4>
Load Magnet
</div>
<div ng-show="mode.magnet" ng-click="edit = !edit" ng-class="{green: edit}" class="ui tiny button">Edit</div>
<div ng-show="mode.magnet && !edit" ng-click="resetOmni()" class="ui tiny button">Reset</div>
</div>

<!-- TORRENT BUTTON -->
Expand Down

0 comments on commit 816cafc

Please sign in to comment.