Skip to content

Commit

Permalink
fix: display name field only with instancesDB browser or json
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Dej <[email protected]>
  • Loading branch information
meteyou committed Apr 27, 2024
1 parent 0951bcd commit df3ca6b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/components/settings/SettingsRemotePrintersTab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,14 @@
outlined
dense />
</settings-row>
<v-divider class="my-2" />
<settings-row :title="$t('Settings.RemotePrintersTab.Name')">
<v-text-field v-model="form.name" outlined hide-details="auto" dense />
</settings-row>
<template v-if="instancesDB !== 'moonraker'">
<v-divider class="my-2" />
<settings-row
:title="$t('Settings.RemotePrintersTab.Name')"
:sub-title="$t('Settings.RemotePrintersTab.NameDescription')">
<v-text-field v-model="form.name" outlined hide-details="auto" dense />
</settings-row>
</template>
</v-card-text>
<v-card-actions class="d-flex justify-end">
<v-btn text @click="form.bool = false">{{ $t('Settings.Cancel') }}</v-btn>
Expand Down
1 change: 1 addition & 0 deletions src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -1068,6 +1068,7 @@
"EditPrinter": "Edit Printer",
"Hostname": "Hostname",
"Name": "Name",
"NameDescription": "This name will not be displayed in the GUI and will only used for redirects.",
"Path": "Path",
"Port": "Port",
"RemotePrinters": "Printers",
Expand Down

0 comments on commit df3ca6b

Please sign in to comment.