Config: Refactor client data struct and app info

Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
Michael Mayer 2023-02-21 00:03:39 +01:00
parent ac3e1a3f4c
commit 517675de3c
2 changed files with 4 additions and 1 deletions

View file

@ -37,6 +37,7 @@ var log = event.Log
const appName = "PhotoPrism"
const appAbout = "PhotoPrism® CE"
const appEdition = "ce"
const appDescription = "PhotoPrism® is an AI-Powered Photos App for the Decentralized Web." +
" It makes use of the latest technologies to tag and find pictures automatically without getting in your way." +
" You can run it at home, on a private server, or in the cloud."
@ -46,6 +47,7 @@ const appCopyright = "(c) 2018-2023 PhotoPrism UG. All rights reserved."
var Metadata = map[string]interface{}{
"Name": appName,
"About": appAbout,
"Edition": appEdition,
"Description": appDescription,
"Version": version,
}

View file

@ -493,7 +493,7 @@
</v-list-tile-content>
</v-list-tile>
<v-list-tile v-show="isAdmin && !isPublic && !isDemo && !isSponsor" :to="{ name: 'upgrade' }" class="nav-upgrade" :exact="true" @click.stop="">
<v-list-tile v-show="isAdmin && !isPublic && !isDemo && featUpgrade" :to="{ name: 'upgrade' }" class="nav-upgrade" :exact="true" @click.stop="">
<v-list-tile-content>
<v-list-tile-title :class="`menu-item ${rtl ? '--rtl' : ''}`">
<translate key="Upgrade">Upgrade</translate>
@ -702,6 +702,7 @@ export default {
appIcon: this.$config.getIcon(),
indexing: false,
drawer: null,
featUpgrade: this.$config.getLicense() === "ce",
isRestricted: isRestricted,
isMini: localStorage.getItem('last_navigation_mode') !== 'false' || isRestricted,
isPublic: this.$config.get("public"),