Add extra Add Torrent button on the "Add new torrent" page.

This commit is contained in:
Roger Versluis 2023-09-02 16:21:00 -06:00
parent 3b9a68c92f
commit 9410b0c83b
3 changed files with 39 additions and 6 deletions

View file

@ -18,8 +18,6 @@
</div>
</div>
<hr />
<div class="field">
<label class="label">Magnet Link</label>
<div class="control">
@ -33,8 +31,16 @@
></textarea>
</div>
</div>
<div class="field">
<div class="control">
<button class="button is-success" [disabled]="saving" [ngClass]="{ 'is-loading': saving }" (click)="ok()">
<span>Add Torrent</span>
</button>
</div>
</div>
<hr />
<div class="separator">Advanced settings</div>
<div class="field">
<label class="label">Post Download Action</label>

View file

@ -17,3 +17,28 @@
.is-block {
display: block;
}
.separator {
display: flex;
align-items: center;
text-align: center;
color: darkgray;
font-size: 10px;
margin-top: 12px;
margin-bottom: 12px;
}
.separator::before,
.separator::after {
content: '';
flex: 1;
border-bottom: 1px solid darkgray;
}
.separator:not(:empty)::before {
margin-right: .25em;
}
.separator:not(:empty)::after {
margin-left: .25em;
}

View file

@ -6,9 +6,11 @@
<base href="/" />
<script>
(function () {
var pathSegment = window.location.pathname.split("/")[1];
window["_app_base"] = pathSegment ? "/" + pathSegment + "/" : "/";
console.log("setting base href to " + window["_app_base"]);
if (window.location.host !== 'localhost:4200') {
var pathSegment = window.location.pathname.split("/")[1];
window["_app_base"] = pathSegment ? "/" + pathSegment + "/" : "/";
console.log("setting base href to " + window["_app_base"]);
}
})();
</script>
<meta name="viewport" content="width=device-width, initial-scale=1" />