mirror of
https://github.com/rommapp/romm.git
synced 2026-12-02 10:08:40 +01:00
Merge pull request #3818 from rommapp/fix/device-auth-select-labels
fix(v2): render visible labels on device-auth and token expiry selects
This commit is contained in:
@@ -416,6 +416,7 @@ onBeforeUnmount(() => {
|
||||
v-model="selectedExpiry"
|
||||
:items="expiryOptions"
|
||||
:label="t('settings.client-token-select-expiry')"
|
||||
prefix-label="stacked"
|
||||
variant="outlined"
|
||||
density="comfortable"
|
||||
hide-details
|
||||
|
||||
@@ -20,12 +20,7 @@ import deviceAuthApi, {
|
||||
type ApiError = AxiosError<{ detail?: string }>;
|
||||
|
||||
type Status =
|
||||
| "loading"
|
||||
| "ready"
|
||||
| "submitting"
|
||||
| "approved"
|
||||
| "denied"
|
||||
| "error";
|
||||
"loading" | "ready" | "submitting" | "approved" | "denied" | "error";
|
||||
|
||||
const route = useRoute();
|
||||
const { t } = useI18n();
|
||||
@@ -227,6 +222,7 @@ async function deny() {
|
||||
<RTextField
|
||||
v-model="editedDeviceName"
|
||||
:label="t('settings.device-auth-device-name')"
|
||||
prefix-label="stacked"
|
||||
variant="outlined"
|
||||
density="comfortable"
|
||||
/>
|
||||
@@ -279,6 +275,7 @@ async function deny() {
|
||||
<RSelect
|
||||
v-model="expiresIn"
|
||||
:label="t('settings.device-auth-expires-in')"
|
||||
prefix-label="stacked"
|
||||
:items="EXPIRY_OPTIONS"
|
||||
item-title="label"
|
||||
item-value="value"
|
||||
|
||||
Reference in New Issue
Block a user