mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-03-01 03:24:14 +08:00
fix: Fixed the issue where local application descriptions were not di… (#7896)
Refs https://github.com/1Panel-dev/1Panel/issues/7886
This commit is contained in:
parent
39385ea0a0
commit
f3d85d1309
@ -78,8 +78,8 @@ type AppProperty struct {
|
|||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
Type string `json:"type"`
|
Type string `json:"type"`
|
||||||
Tags []string `json:"tags"`
|
Tags []string `json:"tags"`
|
||||||
ShortDescZh string `json:"shortDescZh"`
|
ShortDescZh string `json:"shortDescZh" yaml:"shortDescZh"`
|
||||||
ShortDescEn string `json:"shortDescEn"`
|
ShortDescEn string `json:"shortDescEn" yaml:"shortDescEn"`
|
||||||
Description Locale `json:"description"`
|
Description Locale `json:"description"`
|
||||||
Key string `json:"key"`
|
Key string `json:"key"`
|
||||||
Required []string `json:"Required"`
|
Required []string `json:"Required"`
|
||||||
|
@ -1163,12 +1163,11 @@ func handleLocalApp(appDir string) (app *model.App, err error) {
|
|||||||
app.Website = appDefine.Website
|
app.Website = appDefine.Website
|
||||||
app.Github = appDefine.Github
|
app.Github = appDefine.Github
|
||||||
app.Document = appDefine.Document
|
app.Document = appDefine.Document
|
||||||
|
|
||||||
if appDefine.ShortDescZh != "" {
|
if appDefine.ShortDescZh != "" {
|
||||||
appDefine.Description.Zh = appDefine.ShortDescZh
|
app.ShortDescZh = appDefine.ShortDescZh
|
||||||
}
|
}
|
||||||
if appDefine.ShortDescEn != "" {
|
if appDefine.ShortDescEn != "" {
|
||||||
appDefine.Description.En = appDefine.ShortDescEn
|
app.ShortDescEn = appDefine.ShortDescEn
|
||||||
}
|
}
|
||||||
desc, _ := json.Marshal(appDefine.Description)
|
desc, _ := json.Marshal(appDefine.Description)
|
||||||
app.Description = string(desc)
|
app.Description = string(desc)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user