Add extra Add Torrent button on the "Add new torrent" page.
This commit is contained in:
parent
3b9a68c92f
commit
9410b0c83b
3 changed files with 39 additions and 6 deletions
|
|
@ -18,8 +18,6 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<hr />
|
|
||||||
|
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<label class="label">Magnet Link</label>
|
<label class="label">Magnet Link</label>
|
||||||
<div class="control">
|
<div class="control">
|
||||||
|
|
@ -34,7 +32,15 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<hr />
|
<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>
|
||||||
|
|
||||||
|
<div class="separator">Advanced settings</div>
|
||||||
|
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<label class="label">Post Download Action</label>
|
<label class="label">Post Download Action</label>
|
||||||
|
|
|
||||||
|
|
@ -17,3 +17,28 @@
|
||||||
.is-block {
|
.is-block {
|
||||||
display: 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;
|
||||||
|
}
|
||||||
|
|
@ -6,9 +6,11 @@
|
||||||
<base href="/" />
|
<base href="/" />
|
||||||
<script>
|
<script>
|
||||||
(function () {
|
(function () {
|
||||||
var pathSegment = window.location.pathname.split("/")[1];
|
if (window.location.host !== 'localhost:4200') {
|
||||||
window["_app_base"] = pathSegment ? "/" + pathSegment + "/" : "/";
|
var pathSegment = window.location.pathname.split("/")[1];
|
||||||
console.log("setting base href to " + window["_app_base"]);
|
window["_app_base"] = pathSegment ? "/" + pathSegment + "/" : "/";
|
||||||
|
console.log("setting base href to " + window["_app_base"]);
|
||||||
|
}
|
||||||
})();
|
})();
|
||||||
</script>
|
</script>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue