ActivityPub-federated video streaming platform using P2P directly in your web browser
Put the delete button in a dedicated section
Chocobozzzfb9d678f7f79
diff --git a/client/src/app/+videos-publish-manage/shared-manage/common/video-manage-page-common.scss b/client/src/app/+videos-publish-manage/shared-manage/common/video-manage-page-common.scssindex 04fc9c6a4a..117270a366 100644--- a/client/src/app/+videos-publish-manage/shared-manage/common/video-manage-page-common.scss+++ b/client/src/app/+videos-publish-manage/shared-manage/common/video-manage-page-common.scss@@ -1,6 +1,6 @@-@use '_variables' as *;-@use '_mixins' as *;-@use '_form-mixins' as *;+@use "_variables" as *;+@use "_mixins" as *;+@use "_form-mixins" as *;h2 {font-weight: $font-bold;@@ -33,7 +33,7 @@ my-timestamp-input {width: 100px;}-input[type=text] {+input[type="text"] {display: block;@include peertube-input-text(100%);@@ -76,7 +76,7 @@ p-calendar {}.dragover {- border: 3px dashed pvar(--primary);+ border: 3px dashed pvar(--primary);}.plugin-fields {@@ -84,7 +84,15 @@ p-calendar {flex-wrap: wrap;column-gap: 2.5rem;- > *:nth-child(2n + 1) {- width: 66%+ > *:nth-child(2n+1) {+ width: 66%;+ }+}++.danger-zone {+ h3 {+ color: pvar(--red);+ font-weight: $font-bold;+ font-size: 1rem;}}diff --git a/client/src/app/+videos-publish-manage/shared-manage/main-info/video-main-info.component.html b/client/src/app/+videos-publish-manage/shared-manage/main-info/video-main-info.component.htmlindex 8f90ab6766..4b55ab3a1a 100644--- a/client/src/app/+videos-publish-manage/shared-manage/main-info/video-main-info.component.html+++ b/client/src/app/+videos-publish-manage/shared-manage/main-info/video-main-info.component.html@@ -163,8 +163,14 @@<ng-container i18n>The video may be unplayable during the transcoding process. It's the reason why we prefer to publish publicly the video after transcoding.</ng-container></ng-template></my-peertube-checkbox>+ </div>+</div>- <div *ngIf="canBeDeleted()" class="form-group">+<div *ngIf="canBeDeleted()">+ <div class="danger-zone mt-5">+ <h3 class="mb-3" i18n>DANGER ZONE</h3>++ <div class="form-group"><label i18n for="deleteVideo">Delete your video</label><div class="form-group-description" i18n>Warning: this is a definitive action!</div>