Cleanup update video button

This commit is contained in:
Chocobozzz 2021-01-19 11:43:35 +01:00
parent 370240824e
commit 1ef7f32304
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
6 changed files with 14 additions and 41 deletions

View File

@ -40,6 +40,6 @@ export class VideoUploadPage {
}
private getSecondStepSubmitButton () {
return element(by.css('.submit-button:not(.disabled)'))
return element(by.css('.submit-container my-button'))
}
}

View File

@ -126,24 +126,6 @@ my-peertube-checkbox {
color: pvar(--greyForegroundColor);
font-size: 15px;
}
.submit-button {
@include peertube-button;
@include orange-button;
@include button-with-icon(20px, 1px);
display: inline-block;
input {
cursor: inherit;
background-color: inherit;
border: none;
padding: 0;
outline: 0;
color: inherit;
font-weight: $font-semibold;
}
}
}
p-calendar {

View File

@ -42,12 +42,9 @@
></my-video-edit>
<div class="submit-container">
<div class="submit-button"
(click)="updateSecondStep()"
[ngClass]="{ disabled: !form.valid }"
>
<my-global-icon iconName="circle-tick" aria-hidden="true"></my-global-icon>
<input type="button" i18n-value value="Update" />
</div>
<my-button className="orange-button" i18n-label label="Update" icon="circle-tick"
(click)="updateSecondStep()"
[disabled]="!form.valid"
></my-button>
</div>
</form>

View File

@ -65,12 +65,9 @@
></my-video-edit>
<div class="submit-container">
<div class="submit-button"
(click)="updateSecondStep()"
[ngClass]="{ disabled: !form.valid || isUpdatingVideo === true }"
>
<my-global-icon iconName="circle-tick" aria-hidden="true"></my-global-icon>
<input type="button" i18n-value value="Update" />
</div>
<my-button className="orange-button" i18n-label label="Update" icon="circle-tick"
(click)="updateSecondStep()"
[disabled]="!form.valid || isUpdatingVideo === true"
></my-button>
</div>
</form>

View File

@ -58,12 +58,9 @@
></my-video-edit>
<div class="submit-container">
<div class="submit-button"
(click)="updateSecondStep()"
[ngClass]="{ disabled: !form.valid || isUpdatingVideo === true }"
>
<my-global-icon iconName="circle-tick" aria-hidden="true"></my-global-icon>
<input type="button" i18n-value value="Update" />
</div>
<my-button className="orange-button" i18n-label label="Update" icon="circle-tick"
(click)="updateSecondStep()"
[disabled]="!form.valid || isUpdatingVideo === true"
></my-button>
</div>
</form>

View File

@ -91,7 +91,7 @@
<div class="submit-container">
<div i18n *ngIf="videoUploaded === false" class="message-submit">Publish will be available when upload is finished</div>
<my-button className="submit-button orange-button" i18n-label label="Publish" icon="circle-tick"
<my-button className="orange-button" i18n-label label="Publish" icon="circle-tick"
(click)="updateSecondStep()" (keydown.enter)="updateSecondStep()"
[disabled]="isPublishingButtonDisabled()"
></my-button>