added macos tab
This commit is contained in:
parent
056deef193
commit
0167e7d02c
@ -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>
|
||||||
|
|||||||
@ -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;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user