[MM-21123] Add Labels to upstream Marketplace response (#13425)

* Add Labels to upstream Marketplace response

* Add LOCAL label to local plugins
Этот коммит содержится в:
Ben Schumacher
2020-01-14 07:16:36 +01:00
коммит произвёл GitHub
родитель 8e2c59ca00
Коммит 1f3f8fbf57
3 изменённых файлов: 43 добавлений и 12 удалений

Просмотреть файл

@@ -502,6 +502,11 @@ func (a *App) GetMarketplacePlugins(filter *model.MarketplacePluginFilter) ([]*m
result = append(result, &model.MarketplacePlugin{
BaseMarketplacePlugin: &model.BaseMarketplacePlugin{
// Labels should not (yet) be localized as the labels sent by the Marketplace are not (yet) localizable.
Labels: []model.MarketplaceLabel{{
Name: "Local",
Description: "This plugin is not listed in the marketplace but was installed manually",
}},
Manifest: plugin.Manifest,
},
InstalledVersion: plugin.Manifest.Version,