Cleanup update video button
This commit is contained in:
parent
370240824e
commit
1ef7f32304
6 changed files with 14 additions and 41 deletions
|
@ -40,6 +40,6 @@ export class VideoUploadPage {
|
||||||
}
|
}
|
||||||
|
|
||||||
private getSecondStepSubmitButton () {
|
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);
|
color: pvar(--greyForegroundColor);
|
||||||
font-size: 15px;
|
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 {
|
p-calendar {
|
||||||
|
|
|
@ -42,12 +42,9 @@
|
||||||
></my-video-edit>
|
></my-video-edit>
|
||||||
|
|
||||||
<div class="submit-container">
|
<div class="submit-container">
|
||||||
<div class="submit-button"
|
<my-button className="orange-button" i18n-label label="Update" icon="circle-tick"
|
||||||
(click)="updateSecondStep()"
|
(click)="updateSecondStep()"
|
||||||
[ngClass]="{ disabled: !form.valid }"
|
[disabled]="!form.valid"
|
||||||
>
|
></my-button>
|
||||||
<my-global-icon iconName="circle-tick" aria-hidden="true"></my-global-icon>
|
|
||||||
<input type="button" i18n-value value="Update" />
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|
|
@ -65,12 +65,9 @@
|
||||||
></my-video-edit>
|
></my-video-edit>
|
||||||
|
|
||||||
<div class="submit-container">
|
<div class="submit-container">
|
||||||
<div class="submit-button"
|
<my-button className="orange-button" i18n-label label="Update" icon="circle-tick"
|
||||||
(click)="updateSecondStep()"
|
(click)="updateSecondStep()"
|
||||||
[ngClass]="{ disabled: !form.valid || isUpdatingVideo === true }"
|
[disabled]="!form.valid || isUpdatingVideo === true"
|
||||||
>
|
></my-button>
|
||||||
<my-global-icon iconName="circle-tick" aria-hidden="true"></my-global-icon>
|
|
||||||
<input type="button" i18n-value value="Update" />
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|
|
@ -58,12 +58,9 @@
|
||||||
></my-video-edit>
|
></my-video-edit>
|
||||||
|
|
||||||
<div class="submit-container">
|
<div class="submit-container">
|
||||||
<div class="submit-button"
|
<my-button className="orange-button" i18n-label label="Update" icon="circle-tick"
|
||||||
(click)="updateSecondStep()"
|
(click)="updateSecondStep()"
|
||||||
[ngClass]="{ disabled: !form.valid || isUpdatingVideo === true }"
|
[disabled]="!form.valid || isUpdatingVideo === true"
|
||||||
>
|
></my-button>
|
||||||
<my-global-icon iconName="circle-tick" aria-hidden="true"></my-global-icon>
|
|
||||||
<input type="button" i18n-value value="Update" />
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|
|
@ -91,7 +91,7 @@
|
||||||
<div class="submit-container">
|
<div class="submit-container">
|
||||||
<div i18n *ngIf="videoUploaded === false" class="message-submit">Publish will be available when upload is finished</div>
|
<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()"
|
(click)="updateSecondStep()" (keydown.enter)="updateSecondStep()"
|
||||||
[disabled]="isPublishingButtonDisabled()"
|
[disabled]="isPublishingButtonDisabled()"
|
||||||
></my-button>
|
></my-button>
|
||||||
|
|
Loading…
Reference in a new issue