mirror of
https://github.com/Drop-OSS/drop.git
synced 2026-07-24 00:42:51 +10:00
Add display name field to version importer (#354)
This commit is contained in:
@@ -412,6 +412,9 @@
|
|||||||
"selectGameSearch": "Select game",
|
"selectGameSearch": "Select game",
|
||||||
"selectPlatform": "Please select a platform…",
|
"selectPlatform": "Please select a platform…",
|
||||||
"version": {
|
"version": {
|
||||||
|
"displayName": "Display Name",
|
||||||
|
"displayNameDesc": "Optionally, set the display name of the version. If not set, uses the name in the dropdown.",
|
||||||
|
"displayNamePlaceholder": "My New Version",
|
||||||
"import": "Import version",
|
"import": "Import version",
|
||||||
"installDir": "(install_dir)/",
|
"installDir": "(install_dir)/",
|
||||||
"launchCmd": "Launch executable/command",
|
"launchCmd": "Launch executable/command",
|
||||||
|
|||||||
@@ -74,6 +74,28 @@
|
|||||||
</Listbox>
|
</Listbox>
|
||||||
|
|
||||||
<div v-if="versionGuesses" class="flex flex-col gap-4">
|
<div v-if="versionGuesses" class="flex flex-col gap-4">
|
||||||
|
<!-- version display name -->
|
||||||
|
<div class="bg-zinc-800 p-4 rounded-xl relative flex flex-col gap-y-2">
|
||||||
|
<div>
|
||||||
|
<label class="block text-sm font-medium leading-6 text-zinc-100">{{
|
||||||
|
$t("library.admin.import.version.displayName")
|
||||||
|
}}</label>
|
||||||
|
<p class="text-zinc-400 text-xs">
|
||||||
|
{{ $t("library.admin.import.version.displayNameDesc") }}
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<input
|
||||||
|
id="display-name"
|
||||||
|
v-model="versionSettings.displayName"
|
||||||
|
type="text"
|
||||||
|
class="min-w-48 block w-full rounded-md border-radius-md bg-zinc-950 px-3 py-1.5 text-white outline-1 -outline-offset-1 outline-zinc-800 placeholder:text-zinc-500 focus:outline-1 focus:-outline-offset-1 focus:outline-blue-500 sm:text-sm/6"
|
||||||
|
:placeholder="
|
||||||
|
$t('library.admin.import.version.displayNamePlaceholder')
|
||||||
|
"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<!-- setup executable -->
|
<!-- setup executable -->
|
||||||
<div class="bg-zinc-800 p-4 rounded-xl relative flex flex-col gap-y-2">
|
<div class="bg-zinc-800 p-4 rounded-xl relative flex flex-col gap-y-2">
|
||||||
<div>
|
<div>
|
||||||
|
|||||||
Reference in New Issue
Block a user