Skip to content

Commit

Permalink
fix(cspell): typo spelling :-)
Browse files Browse the repository at this point in the history
  • Loading branch information
rahul-rocket committed Jul 10, 2024
1 parent 786eb94 commit 14bb4f5
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,19 +59,32 @@ <h4>
</div>
</nb-form-field>
</nb-card-body>
<nb-card-footer class="text-right">
<button
nbButton
type="submit"
[disabled]="form.invalid || form.disabled"
[status]="deal?.id ? 'info' : 'primary'"
>
<nb-icon pack="eva" [icon]="deal?.id ? 'edit-outline' : 'plus-circle-outline'"></nb-icon>
{{ (deal?.id ? 'BUTTONS.UPDATE' : 'BUTTONS.CREATE') | translate }}
</button>
<button nbButton (click)="cancel()" type="reset" status="danger" class="ml-2">
<nb-card-footer class="text-left">
<button nbButton type="button" (click)="cancel()" status="basic" class="ml-2">
{{ 'BUTTONS.CANCEL' | translate }}
</button>
<ng-template [ngIf]="deal?.id" [ngIfElse]="createButtonTemplate">
<button
type="submit"
nbButton
status="info"
[disabled]="form.invalid || form.disabled"
class="mr-3 ml-3"
>
<span [innerHTML]="'BUTTONS.UPDATE' | translate"></span>
</button>
</ng-template>
<ng-template #createButtonTemplate>
<button
type="submit"
nbButton
status="primary"
[disabled]="form.invalid || form.disabled"
class="mr-3 ml-3"
>
<span [innerHTML]="'BUTTONS.CREATE' | translate"></span>
</button>
</ng-template>
</nb-card-footer>
</nb-card>
</form>
Original file line number Diff line number Diff line change
Expand Up @@ -51,18 +51,28 @@ <h4 class="title">
</div>
</nb-card-body>
<nb-card-footer class="text-left">
<button (click)="closeDialog()" status="basic" size="small" outline nbButton>
<button nbButton type="button" (click)="closeDialog()" status="basic">
<span [innerHTML]="'BUTTONS.CANCEL' | translate"></span>
</button>

<ng-template [ngIf]="pipeline?.id" [ngIfElse]="createButtonTemaplte">
<button type="submit" nbButton status="info" [disabled]="!form.valid" class="mr-3 ml-3">
<ng-template [ngIf]="pipeline?.id" [ngIfElse]="createButtonTemplate">
<button
type="submit"
nbButton
status="info"
[disabled]="form.invalid || form.disabled"
class="mr-3 ml-3"
>
<span [innerHTML]="'BUTTONS.UPDATE' | translate"></span>
</button>
</ng-template>

<ng-template #createButtonTemaplte>
<button type="submit" nbButton status="primary" [disabled]="!form.valid" class="mr-3 ml-3">
<ng-template #createButtonTemplate>
<button
type="submit"
nbButton
status="primary"
[disabled]="form.invalid || form.disabled"
class="mr-3 ml-3"
>
<span [innerHTML]="'BUTTONS.CREATE' | translate"></span>
</button>
</ng-template>
Expand Down

0 comments on commit 14bb4f5

Please sign in to comment.