mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 20:14:49 +00:00
better wifi page
This commit is contained in:
@@ -40,20 +40,21 @@ import { wifiSpec } from './wifi.const'
|
|||||||
</a>
|
</a>
|
||||||
WiFi
|
WiFi
|
||||||
</ng-container>
|
</ng-container>
|
||||||
@if (status()?.interface) {
|
<section class="g-card">
|
||||||
<section class="g-card">
|
<header>
|
||||||
<header>
|
Wi-Fi
|
||||||
Wi-Fi
|
<a
|
||||||
<a
|
tuiIconButton
|
||||||
tuiIconButton
|
size="xs"
|
||||||
size="xs"
|
docsLink
|
||||||
docsLink
|
path="/start-os/wifi.html"
|
||||||
path="/start-os/wifi.html"
|
appearance="icon"
|
||||||
appearance="icon"
|
iconStart="@tui.book-open-text"
|
||||||
iconStart="@tui.book-open-text"
|
>
|
||||||
>
|
{{ 'Documentation' | i18n }}
|
||||||
{{ 'Documentation' | i18n }}
|
</a>
|
||||||
</a>
|
|
||||||
|
@if (status()?.interface) {
|
||||||
<input
|
<input
|
||||||
type="checkbox"
|
type="checkbox"
|
||||||
tuiSwitch
|
tuiSwitch
|
||||||
@@ -62,7 +63,10 @@ import { wifiSpec } from './wifi.const'
|
|||||||
[ngModel]="status()?.enabled"
|
[ngModel]="status()?.enabled"
|
||||||
(ngModelChange)="onToggle($event)"
|
(ngModelChange)="onToggle($event)"
|
||||||
/>
|
/>
|
||||||
</header>
|
}
|
||||||
|
</header>
|
||||||
|
|
||||||
|
@if (status()?.interface) {
|
||||||
@if (status()?.enabled) {
|
@if (status()?.enabled) {
|
||||||
@if (wifi(); as data) {
|
@if (wifi(); as data) {
|
||||||
@if (data.known.length) {
|
@if (data.known.length) {
|
||||||
@@ -86,12 +90,12 @@ import { wifiSpec } from './wifi.const'
|
|||||||
{{ 'WiFi is disabled' | i18n }}
|
{{ 'WiFi is disabled' | i18n }}
|
||||||
</app-placeholder>
|
</app-placeholder>
|
||||||
}
|
}
|
||||||
</section>
|
} @else {
|
||||||
} @else {
|
<app-placeholder icon="@tui.wifi">
|
||||||
<app-placeholder icon="@tui.wifi">
|
{{ 'No wireless interface detected' | i18n }}
|
||||||
{{ 'No wireless interface detected' | i18n }}
|
</app-placeholder>
|
||||||
</app-placeholder>
|
}
|
||||||
}
|
</section>
|
||||||
`,
|
`,
|
||||||
styles: `
|
styles: `
|
||||||
:host {
|
:host {
|
||||||
|
|||||||
Reference in New Issue
Block a user