Skip to content

Commit

Permalink
fix AB#500
Browse files Browse the repository at this point in the history
  • Loading branch information
wanghoppe committed Jan 28, 2023
1 parent db72ae4 commit 0c537c1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/@batch-flask/ui/form/complex-form/footer/form-footer.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
<div class="toggle-mode" *ngIf="config.jsonEditor">
<bl-button type="square"
role="tab"
[attr.aria-pressed]="classicFormDisabled"
[disabled]="classicFormDisabled"
[title]="'form-footer.buttons.normalForm' |i18n"
(do)="toggleJsonEditor(false)">
<i class="fa fa-commenting" aria-hidden="true"></i>
</bl-button>
<bl-button type="square"
role="tab"
[attr.aria-pressed]="showJsonEditor"
[disabled]="showJsonEditor"
[title]="'form-footer.buttons.jsonEditor' |i18n"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
<ng-content></ng-content>
</div>
<div class="toggle-mode" *ngIf="enableJsonView">
<bl-button type="square" [disabled]="!showJson" (do)="toggleShowJson(false)" [title]="'entity-configuration.viewClassic' | i18n">
<bl-button role="tab" type="square" [disabled]="!showJson" (do)="toggleShowJson(false)" [title]="'entity-configuration.viewClassic' | i18n">
<i class="fa fa-list-ul" aria-hidden="true"></i>
</bl-button>
<bl-button type="square" [disabled]="showJson" (do)="toggleShowJson(true)" [title]="'entity-configuration.viewAsJSON' | i18n">
<bl-button role="tab" type="square" [disabled]="showJson" (do)="toggleShowJson(true)" [title]="'entity-configuration.viewAsJSON' | i18n">
<i class="fa fa-code" aria-hidden="true"></i>
</bl-button>
</div>

0 comments on commit 0c537c1

Please sign in to comment.