mirror of https://github.com/Chocobozzz/PeerTube
Add sync link to import page
parent
6a02dd1c3d
commit
97eba003a9
|
@ -2,11 +2,3 @@
|
||||||
margin-top: 15px;
|
margin-top: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.peertube-radio-container {
|
|
||||||
width: 250px;
|
|
||||||
|
|
||||||
.form-group-description {
|
|
||||||
white-space: nowrap;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
|
@ -16,6 +16,10 @@
|
||||||
</my-help>
|
</my-help>
|
||||||
|
|
||||||
<input type="text" id="targetUrl" [(ngModel)]="targetUrl" class="form-control" />
|
<input type="text" id="targetUrl" [(ngModel)]="targetUrl" class="form-control" />
|
||||||
|
|
||||||
|
<div *ngIf="isChannelSyncEnabled()" class="form-group-description" i18n>
|
||||||
|
You can also synchronize a remote channel in <a routerLink="/my-library/video-channel-syncs">your library</a>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
|
|
@ -64,6 +64,10 @@ export class VideoImportUrlComponent extends VideoSend implements OnInit, AfterV
|
||||||
return this.targetUrl?.match(/https?:\/\//)
|
return this.targetUrl?.match(/https?:\/\//)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
isChannelSyncEnabled () {
|
||||||
|
return this.serverConfig.import.videoChannelSynchronization.enabled
|
||||||
|
}
|
||||||
|
|
||||||
importVideo () {
|
importVideo () {
|
||||||
this.isImportingVideo = true
|
this.isImportingVideo = true
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
@use '_variables' as *;
|
@use '_variables' as *;
|
||||||
@use '_mixins' as *;
|
@use '_mixins' as *;
|
||||||
|
|
||||||
$width-size: 250px;
|
$width-size: 275px;
|
||||||
|
|
||||||
.alert.alert-danger {
|
.alert.alert-danger {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
@ -27,7 +27,9 @@ $width-size: 250px;
|
||||||
@include peertube-select-container($width-size);
|
@include peertube-select-container($width-size);
|
||||||
}
|
}
|
||||||
my-select-options ::ng-deep ng-select,
|
my-select-options ::ng-deep ng-select,
|
||||||
my-select-channel ::ng-deep ng-select {
|
my-select-channel ::ng-deep ng-select,
|
||||||
|
.peertube-radio-container,
|
||||||
|
.form-group-description {
|
||||||
width: $width-size;
|
width: $width-size;
|
||||||
|
|
||||||
@media screen and (max-width: $width-size) {
|
@media screen and (max-width: $width-size) {
|
||||||
|
@ -35,6 +37,10 @@ $width-size: 250px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.form-group-description {
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
input[type=text] {
|
input[type=text] {
|
||||||
@include peertube-input-text($width-size);
|
@include peertube-input-text($width-size);
|
||||||
display: block;
|
display: block;
|
||||||
|
|
Loading…
Reference in New Issue