Cleanup update video button
This commit is contained in:
parent
370240824e
commit
1ef7f32304
|
@ -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'))
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue