Browse Source

added macos tab

pull/8337/head
Maksym Dudnik 3 years ago
parent
commit
0167e7d02c
  1. 16
      ui-ngx/src/app/modules/home/components/widget/lib/gateway/device-gateway-command.component.html
  2. 4
      ui-ngx/src/app/modules/home/components/widget/lib/gateway/device-gateway-command.component.ts

16
ui-ngx/src/app/modules/home/components/widget/lib/gateway/device-gateway-command.component.html

@ -55,5 +55,21 @@
</div>
</ng-template>
</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>
</div>

4
ui-ngx/src/app/modules/home/components/widget/lib/gateway/device-gateway-command.component.ts

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

Loading…
Cancel
Save