Steam API Key to HiddenInput

This commit is contained in:
Louis Lam 2021-10-27 23:03:03 +08:00
parent b85c9186f9
commit de5cce9d90

View File

@ -122,7 +122,7 @@
<!-- Steam API Key --> <!-- Steam API Key -->
<div class="mb-4"> <div class="mb-4">
<label class="form-label" for="steamAPIKey">{{ $t("Steam API Key") }}</label> <label class="form-label" for="steamAPIKey">{{ $t("Steam API Key") }}</label>
<input id="steamAPIKey" v-model="settings.steamAPIKey" class="form-control" name="steamAPIKey"> <HiddenInput id="steamAPIKey" v-model="settings.steamAPIKey" />
<div class="form-text"> <div class="form-text">
{{ $t("steamApiKeyDescription") }}<a href="https://steamcommunity.com/dev" target="_blank">https://steamcommunity.com/dev</a> {{ $t("steamApiKeyDescription") }}<a href="https://steamcommunity.com/dev" target="_blank">https://steamcommunity.com/dev</a>
</div> </div>
@ -149,7 +149,7 @@
<!-- Change Password --> <!-- Change Password -->
<template v-if="! settings.disableAuth"> <template v-if="! settings.disableAuth">
<h2 class="mt-5 mb-2">{{ $t("Change Password") }}</h2> <h2 class="mt-5 mb-2">{{ $t("Change Password") }}</h2>
<p>{{ $t("Current User") }}: <strong>{{ this.username }}</strong></p> <p>{{ $t("Current User") }}: <strong>{{ username }}</strong></p>
<form class="mb-3" @submit.prevent="savePassword"> <form class="mb-3" @submit.prevent="savePassword">
<div class="mb-3"> <div class="mb-3">
<label for="current-password" class="form-label">{{ $t("Current Password") }}</label> <label for="current-password" class="form-label">{{ $t("Current Password") }}</label>
@ -410,6 +410,7 @@
</template> </template>
<script> <script>
import HiddenInput from "../components/HiddenInput.vue";
import Confirm from "../components/Confirm.vue"; import Confirm from "../components/Confirm.vue";
import dayjs from "dayjs"; import dayjs from "dayjs";
import utc from "dayjs/plugin/utc"; import utc from "dayjs/plugin/utc";
@ -431,6 +432,7 @@ export default {
NotificationDialog, NotificationDialog,
TwoFADialog, TwoFADialog,
Confirm, Confirm,
HiddenInput,
}, },
data() { data() {