Skip to content

Commit 15eb999

Browse files
author
Ajit Kumar
committed
feat(plugin new fiels, user admin role)
1 parent 885bc18 commit 15eb999

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

client/pages/plugin/index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,10 @@ export default async function Plugin({ id: pluginId, section = 'description' })
183183
break;
184184
case 'changelogs':
185185
currentSection = sectionChangelogs;
186-
mainBody.append(<p className='md' innerHTML={marked.parse(plugin.changelogs)}></p>);
186+
const changelogs = plugin.changelogs ? marked.parse(plugin.changelogs) : '';
187+
mainBody.append(<p className='md' innerHTML={changelogs}>{
188+
!changelogs && <span style={{ opacity: 0.8, fontSize: 'italic' }}>No changelogs</span>
189+
}</p>);
187190
break;
188191
default:
189192
currentSection = sectionDescription;

0 commit comments

Comments
 (0)