mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-03-15 02:04:46 +08:00
fix: 解决限制应用安装之后安装按钮还能点的问题 (#5331)
This commit is contained in:
parent
a7cf69e5a2
commit
859ace71df
@ -40,6 +40,7 @@ type AppDto struct {
|
|||||||
Resource string `json:"resource"`
|
Resource string `json:"resource"`
|
||||||
Installed bool `json:"installed"`
|
Installed bool `json:"installed"`
|
||||||
Versions []string `json:"versions"`
|
Versions []string `json:"versions"`
|
||||||
|
Limit int `json:"limit"`
|
||||||
Tags []model.Tag `json:"tags"`
|
Tags []model.Tag `json:"tags"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -104,6 +104,7 @@ func (a AppService) PageApp(req request.AppSearch) (interface{}, error) {
|
|||||||
ShortDescZh: ap.ShortDescZh,
|
ShortDescZh: ap.ShortDescZh,
|
||||||
ShortDescEn: ap.ShortDescEn,
|
ShortDescEn: ap.ShortDescEn,
|
||||||
Resource: ap.Resource,
|
Resource: ap.Resource,
|
||||||
|
Limit: ap.Limit,
|
||||||
}
|
}
|
||||||
appDTOs = append(appDTOs, appDTO)
|
appDTOs = append(appDTOs, appDTO)
|
||||||
appTags, err := appTagRepo.GetByAppId(ap.ID)
|
appTags, err := appTagRepo.GetByAppId(ap.ID)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user