1
0
Fork 0

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 () { 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); 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 {

View file

@ -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>

View file

@ -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>

View file

@ -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>

View file

@ -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>