Name customer selectors and validate customer fixtures during frontend builds
This commit is contained in:
@@ -407,6 +407,7 @@ export function Devices({
|
||||
<label>
|
||||
<span>Kunde</span>
|
||||
<select
|
||||
aria-label="Kunde"
|
||||
value={filter}
|
||||
onChange={(e) => {
|
||||
setRoutes([]);
|
||||
@@ -425,6 +426,7 @@ export function Devices({
|
||||
<label>
|
||||
<span>Status</span>
|
||||
<select
|
||||
aria-label="Status"
|
||||
value={status}
|
||||
onChange={(e) => {
|
||||
setRoutes([]);
|
||||
|
||||
+2
-2
@@ -367,7 +367,7 @@ function Workspace({ auth, logout }: { auth: Session; logout: () => void }) {
|
||||
<div className="account">
|
||||
<div>
|
||||
<span className="account-dot" aria-hidden="true" />
|
||||
<span title={auth.principal.id}>{auth.principal.display_name}</span>
|
||||
<span title={auth.principal.id}>{auth.principal.display_name === auth.principal.id && auth.principal.id.startsWith('local:') ? 'Lokales Konto' : auth.principal.display_name}</span>
|
||||
</div>
|
||||
<button
|
||||
onClick={async () => {
|
||||
@@ -394,7 +394,7 @@ function Workspace({ auth, logout }: { auth: Session; logout: () => void }) {
|
||||
{route.page !== 'geraete' && route.page !== 'kunden' && (
|
||||
<label className="context">
|
||||
<span>Kunde</span>
|
||||
<select value={customer} onChange={(e) => switchCustomer(e.target.value)}>
|
||||
<select aria-label="Kunde" value={customer} onChange={(e) => switchCustomer(e.target.value)}>
|
||||
{customers.map((c) => (
|
||||
<option value={c.tenant_id} key={c.tenant_id}>
|
||||
{c.name}
|
||||
|
||||
Reference in New Issue
Block a user