From 517675de3cbfe4af626cc25f3bb0662870f674bb Mon Sep 17 00:00:00 2001 From: Michael Mayer Date: Tue, 21 Feb 2023 00:03:39 +0100 Subject: [PATCH] Config: Refactor client data struct and app info Signed-off-by: Michael Mayer --- cmd/photoprism/photoprism.go | 2 ++ frontend/src/component/navigation.vue | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/cmd/photoprism/photoprism.go b/cmd/photoprism/photoprism.go index 07e5d1035..fa7197aeb 100644 --- a/cmd/photoprism/photoprism.go +++ b/cmd/photoprism/photoprism.go @@ -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, } diff --git a/frontend/src/component/navigation.vue b/frontend/src/component/navigation.vue index 3ec025214..fe3ec54c1 100644 --- a/frontend/src/component/navigation.vue +++ b/frontend/src/component/navigation.vue @@ -493,7 +493,7 @@ - + Upgrade @@ -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"),