Add sync link to import page
This commit is contained in:
parent
6a02dd1c3d
commit
97eba003a9
|
@ -2,11 +2,3 @@
|
|||
margin-top: 15px;
|
||||
}
|
||||
|
||||
.peertube-radio-container {
|
||||
width: 250px;
|
||||
|
||||
.form-group-description {
|
||||
white-space: nowrap;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -16,6 +16,10 @@
|
|||
</my-help>
|
||||
|
||||
<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 class="form-group">
|
||||
|
|
|
@ -64,6 +64,10 @@ export class VideoImportUrlComponent extends VideoSend implements OnInit, AfterV
|
|||
return this.targetUrl?.match(/https?:\/\//)
|
||||
}
|
||||
|
||||
isChannelSyncEnabled () {
|
||||
return this.serverConfig.import.videoChannelSynchronization.enabled
|
||||
}
|
||||
|
||||
importVideo () {
|
||||
this.isImportingVideo = true
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
@use '_variables' as *;
|
||||
@use '_mixins' as *;
|
||||
|
||||
$width-size: 250px;
|
||||
$width-size: 275px;
|
||||
|
||||
.alert.alert-danger {
|
||||
text-align: center;
|
||||
|
@ -27,7 +27,9 @@ $width-size: 250px;
|
|||
@include peertube-select-container($width-size);
|
||||
}
|
||||
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;
|
||||
|
||||
@media screen and (max-width: $width-size) {
|
||||
|
@ -35,6 +37,10 @@ $width-size: 250px;
|
|||
}
|
||||
}
|
||||
|
||||
.form-group-description {
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
input[type=text] {
|
||||
@include peertube-input-text($width-size);
|
||||
display: block;
|
||||
|
|
Loading…
Reference in New Issue