mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-28 02:50:27 +00:00
Plugin Chooser: Don't display the "already installed" message twice
Fixing the first issue here https://github.com/Jermolene/TiddlyWiki5/issues/4486#issuecomment-612841838 by @kookma
This commit is contained in:
parent
63dee16611
commit
0d0698ea6e
@ -75,11 +75,10 @@ $:/state/add-plugin-info/$(connectionTiddler)$/$(assetInfo)$
|
||||
<$set name="original-title" value={{{ [<assetInfo>get[original-title]] }}}>
|
||||
<$reveal type="match" text="yes" state=<<popup-state>>>
|
||||
<div class="tc-plugin-info-dropdown">
|
||||
<$list filter="[enlist{!!dependents}] [<currentTiddler>get[parent-plugin]] +[limit[1]] ~[<assetInfo>get[original-title]!is[tiddler]]" variable="ignore">
|
||||
<div class="tc-plugin-info-dropdown-message">
|
||||
<$list filter="[<assetInfo>get[original-title]get[version]]" variable="installedVersion" emptyMessage="""{{$:/language/ControlPanel/Plugins/NotInstalled/Hint}}""">
|
||||
<em>
|
||||
{{$:/language/ControlPanel/Plugins/AlreadyInstalled/Hint}}
|
||||
</em>
|
||||
<$list filter="[<assetInfo>get[original-title]!is[tiddler]]">
|
||||
{{$:/language/ControlPanel/Plugins/NotInstalled/Hint}}
|
||||
</$list>
|
||||
<$set name="currentTiddler" value=<<assetInfo>>>
|
||||
<$list filter="[enlist{!!dependents}] [<currentTiddler>get[parent-plugin]] +[limit[1]]" variable="ignore">
|
||||
@ -92,6 +91,7 @@ $:/state/add-plugin-info/$(connectionTiddler)$/$(assetInfo)$
|
||||
</$list>
|
||||
</$set>
|
||||
</div>
|
||||
</$list>
|
||||
<div class="tc-plugin-info-dropdown-body">
|
||||
<$transclude tiddler=<<assetInfo>> field="readme" mode="block"/>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user