File tree 3 files changed +10
-4
lines changed
client/packages/lowcoder/src
pages/editor/right/PluginPanel
3 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -113,11 +113,18 @@ export const CompName = (props: Iprops) => {
113
113
114
114
115
115
if ( compInfo . isRemote ) {
116
+ // Falk: Displaying the current version of the component
117
+ items . push ( {
118
+ text : trans ( "history.currentVersion" ) + ": " + compInfo . packageVersion ,
119
+ onClick : ( ) => {
120
+ } ,
121
+ } ) ;
116
122
items . push ( {
117
123
text : trans ( "comp.menuUpgradeToLatest" ) ,
118
124
onClick : ( ) => {
119
125
handleUpgrade ( ) ;
120
126
} ,
127
+
121
128
} ) ;
122
129
}
123
130
Original file line number Diff line number Diff line change @@ -15,10 +15,9 @@ async function npmLoader(
15
15
16
16
// Falk: removed "packageVersion = "latest" as default value fir packageVersion - to ensure no automatic version jumping.
17
17
18
+ const localPackageVersion = remoteInfo . packageVersion || "latest" ;
18
19
const { packageName, packageVersion, compName } = remoteInfo ;
19
- const entry = `${ NPM_PLUGIN_ASSETS_BASE_URL } /${ packageName } @${ packageVersion } /index.js` ;
20
- // const entry = `../../../../../public/package/index.js`;
21
- // console.log("Entry", entry);
20
+ const entry = `${ NPM_PLUGIN_ASSETS_BASE_URL } /${ packageName } @${ localPackageVersion } /index.js` ;
22
21
try {
23
22
const module = await import ( /* webpackIgnore: true */ entry ) ;
24
23
const comp = module . default ?. [ compName ] ;
Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ export function PluginCompItem(props: PluginCompItemProps) {
96
96
</ div >
97
97
< div className = "module-content" >
98
98
< div className = "module-name" > { compMeta . name } </ div >
99
- < div className = "module-desc" > { compMeta . description || "No description." } </ div >
99
+ < div className = "module-desc" > { compMeta . description || "No description." } < span > v { packageVersion || "" } </ span > </ div >
100
100
</ div >
101
101
</ ItemWrapper >
102
102
) ;
You can’t perform that action at this time.
0 commit comments