mirror of
https://github.com/Eugeny/tabby.git
synced 2025-08-20 08:11:52 +00:00
fixed official plugins not being marked as such
This commit is contained in:
@@ -57,7 +57,6 @@ div
|
|||||||
placeholder='Search plugins'
|
placeholder='Search plugins'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
.list-group.list-group-flush.mb-4(*ngIf='availablePlugins$')
|
.list-group.list-group-flush.mb-4(*ngIf='availablePlugins$')
|
||||||
ng-container(*ngFor='let plugin of (availablePlugins$|async)')
|
ng-container(*ngFor='let plugin of (availablePlugins$|async)')
|
||||||
.list-group-item.d-flex.align-items-center(*ngIf='!isAlreadyInstalled(plugin)')
|
.list-group-item.d-flex.align-items-center(*ngIf='!isAlreadyInstalled(plugin)')
|
||||||
@@ -71,6 +70,9 @@ div
|
|||||||
div((click)='showPluginInfo(plugin)')
|
div((click)='showPluginInfo(plugin)')
|
||||||
div
|
div
|
||||||
strong {{plugin.name}}
|
strong {{plugin.name}}
|
||||||
small.text-muted.ml-1 {{plugin.version}} / {{plugin.author}}
|
small.text-muted.ml-1 {{plugin.version}}
|
||||||
i.fas.fa-check.text-success.ml-1(*ngIf='plugin.isOfficial', title='Official')
|
small.text-muted.ml-1(*ngIf='!plugin.isOfficial') by {{plugin.author}}
|
||||||
|
small.text-success.ml-1(*ngIf='plugin.isOfficial')
|
||||||
|
i.fas.fa-check
|
||||||
|
span.ml-1 Official
|
||||||
small.text-muted {{plugin.description}}
|
small.text-muted {{plugin.description}}
|
||||||
|
@@ -43,7 +43,7 @@ export class PluginManagerService {
|
|||||||
version: item.package.version,
|
version: item.package.version,
|
||||||
homepage: item.package.links.homepage,
|
homepage: item.package.links.homepage,
|
||||||
author: (item.package.author || {}).name,
|
author: (item.package.author || {}).name,
|
||||||
isOfficial: item.package.publisher.username === OFFICIAL_NPM_ACCOUNT,
|
isOfficial: item.package.publisher.name === OFFICIAL_NPM_ACCOUNT,
|
||||||
}))),
|
}))),
|
||||||
map(plugins => plugins.filter(x => x.packageName.startsWith(NAME_PREFIX))),
|
map(plugins => plugins.filter(x => x.packageName.startsWith(NAME_PREFIX))),
|
||||||
map(plugins => plugins.filter(x => !BLACKLIST.includes(x.packageName))),
|
map(plugins => plugins.filter(x => !BLACKLIST.includes(x.packageName))),
|
||||||
|
Reference in New Issue
Block a user