Skip to content

Commit

Permalink
Restore delete button (#1077)
Browse files Browse the repository at this point in the history
* Fix regression on uploaded APK Deletion

 * Fixed an issue where the trashcan was no long present for uploaded APKs (#932)
 * When selecting a file to upload it now defaults to showing only .apk files
  • Loading branch information
Expl0dingBanana authored Dec 27, 2020
1 parent 617165f commit 2e3762f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
# Adding linting to tox
38e69851c09c4bac7db8827091b22afcd2072bea
# Flake8 enforcement (#932)
3fa093fd0761f55091516e0e27cbe332d15905b0
2 changes: 1 addition & 1 deletion static/madmin/templates/upload.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ <h2>Select an apk file for upload</h2>
<form method="post" action="{{ url_for("upload") }}" enctype="multipart/form-data">
<dl>
<p>
<input type="file" name="file" autocomplete="off" required>
<input type="file" name="file" autocomplete="off" required accept=".apk">
</p>
</dl>
<p>
Expand Down
2 changes: 1 addition & 1 deletion static/madmin/templates/uploaded_files.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"' title='Install on selected devices'><i class='fas fa-tasks'></i></a> <a href='install_file_all_devices?jobname=" +
row.jobname + "&type=" + row.type +
"' class='confirm' title='Do you really want to start this job on all devices?'><i class='fas fa-play-circle'></i></a>";
if(row.type == "jobType.INSTALLATION") {
if(row.type == "JobType.INSTALLATION") {
dellink = " <a href='delete_file?filename=" + row.jobname +
"' class='confirm' title='Do you really want to delete this file?'><i class='fas fa-trash-alt'></i></a>"
}
Expand Down

0 comments on commit 2e3762f

Please sign in to comment.