added macos tab

This commit is contained in:
Maksym Dudnik 2023-08-18 15:27:18 +03:00
parent 056deef193
commit 0167e7d02c
2 changed files with 19 additions and 1 deletions

View File

@ -55,5 +55,21 @@
</div> </div>
</ng-template> </ng-template>
</mat-tab> </mat-tab>
<mat-tab>
<ng-template mat-tab-label>
<mat-icon class="tabs-icon" svgIcon="macos"></mat-icon>
MacOS
</ng-template>
<ng-template matTabContent>
<div class="tb-form-panel no-padding no-border tb-tab-body">
<tb-markdown usePlainMarkdown containerClass="start-code" data="
```bash
{{linuxCode}}
{:copy-code}
```
"></tb-markdown>
</div>
</ng-template>
</mat-tab>
</mat-tab-group> </mat-tab-group>
</div> </div>

View File

@ -65,9 +65,11 @@ export class DeviceGatewayCommandComponent implements OnInit {
switch (currentOS) { switch (currentOS) {
case 'linux': case 'linux':
case 'android': case 'android':
this.tabIndex = 1;
break;
case 'macos': case 'macos':
case 'ios': case 'ios':
this.tabIndex = 1; this.tabIndex = 2;
break; break;
case 'windows': case 'windows':
this.tabIndex = 0; this.tabIndex = 0;