diff options
author | Rigel Kent <sendmemail@rigelk.eu> | 2020-07-01 02:08:58 +0200 |
---|---|---|
committer | Rigel Kent <par@rigelk.eu> | 2020-07-01 17:03:48 +0200 |
commit | 1fe1e14cb30ac44299563f98ed0aee2805794493 (patch) | |
tree | ce7066676a6aea5c022094bda4cc4068bd5f6fcf /client/src/app/+videos/+video-edit | |
parent | c41c0e28ed444fdb427f9803d2f123ba6f535fb9 (diff) | |
download | PeerTube-1fe1e14cb30ac44299563f98ed0aee2805794493.tar.gz PeerTube-1fe1e14cb30ac44299563f98ed0aee2805794493.tar.zst PeerTube-1fe1e14cb30ac44299563f98ed0aee2805794493.zip |
fix video update button, add color to danger zone
Diffstat (limited to 'client/src/app/+videos/+video-edit')
-rw-r--r-- | client/src/app/+videos/+video-edit/video-add-components/video-upload.component.html | 11 | ||||
-rw-r--r-- | client/src/app/+videos/+video-edit/video-update.component.html | 8 |
2 files changed, 8 insertions, 11 deletions
diff --git a/client/src/app/+videos/+video-edit/video-add-components/video-upload.component.html b/client/src/app/+videos/+video-edit/video-add-components/video-upload.component.html index 2c40892ee..8af1687e6 100644 --- a/client/src/app/+videos/+video-edit/video-add-components/video-upload.component.html +++ b/client/src/app/+videos/+video-edit/video-add-components/video-upload.component.html | |||
@@ -79,12 +79,9 @@ | |||
79 | <div class="submit-container"> | 79 | <div class="submit-container"> |
80 | <div i18n *ngIf="videoUploaded === false" class="message-submit">Publish will be available when upload is finished</div> | 80 | <div i18n *ngIf="videoUploaded === false" class="message-submit">Publish will be available when upload is finished</div> |
81 | 81 | ||
82 | <div class="submit-button" | 82 | <my-button className="orange-button" i18n-label label="Publish" icon="circle-tick" |
83 | (click)="updateSecondStep()" | 83 | (click)="updateSecondStep()" (keydown.enter)="updateSecondStep()" |
84 | [ngClass]="{ disabled: isPublishingButtonDisabled() }" | 84 | [disabled]="isPublishingButtonDisabled()" |
85 | > | 85 | ></my-button> |
86 | <my-global-icon iconName="circle-tick" aria-hidden="true"></my-global-icon> | ||
87 | <input [disabled]="isPublishingButtonDisabled()" type="button" i18n-value value="Publish" /> | ||
88 | </div> | ||
89 | </div> | 86 | </div> |
90 | </form> | 87 | </form> |
diff --git a/client/src/app/+videos/+video-edit/video-update.component.html b/client/src/app/+videos/+video-edit/video-update.component.html index 1517d4991..6c1239395 100644 --- a/client/src/app/+videos/+video-edit/video-update.component.html +++ b/client/src/app/+videos/+video-edit/video-update.component.html | |||
@@ -13,10 +13,10 @@ | |||
13 | ></my-video-edit> | 13 | ></my-video-edit> |
14 | 14 | ||
15 | <div class="submit-container"> | 15 | <div class="submit-container"> |
16 | <div class="submit-button" (click)="update()" [ngClass]="{ disabled: !form.valid || isUpdatingVideo === true }"> | 16 | <my-button className="orange-button" i18n-label label="Update" icon="circle-tick" |
17 | <my-global-icon iconName="circle-tick" aria-hidden="true"></my-global-icon> | 17 | (click)="update()" (keydown.enter)="update()" |
18 | <input type="button" i18n-value value="Update" /> | 18 | [disabled]="!form.valid || isUpdatingVideo === true" |
19 | </div> | 19 | ></my-button> |
20 | </div> | 20 | </div> |
21 | </form> | 21 | </form> |
22 | </div> | 22 | </div> |