Skip to content

Commit

Permalink
manager: show module id on module page (tiann#2365)
Browse files Browse the repository at this point in the history
  • Loading branch information
ukriu authored and selfmusing committed Feb 9, 2025
1 parent dface2a commit bae67d3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -565,6 +565,7 @@ fun ModuleItem(
horizontalArrangement = Arrangement.SpaceBetween,
) {
val moduleVersion = stringResource(id = R.string.module_version)
val moduleId = stringResource(id = R.string.module_id)
val moduleAuthor = stringResource(id = R.string.module_author)

Column(
Expand All @@ -587,6 +588,14 @@ fun ModuleItem(
textDecoration = textDecoration
)

Text(
text = "$moduleId: ${module.id}",
fontSize = MaterialTheme.typography.bodySmall.fontSize,
lineHeight = MaterialTheme.typography.bodySmall.lineHeight,
fontFamily = MaterialTheme.typography.bodySmall.fontFamily,
textDecoration = textDecoration
)

Text(
text = "$moduleAuthor: ${module.author}",
fontSize = MaterialTheme.typography.bodySmall.fontSize,
Expand Down
1 change: 1 addition & 0 deletions manager/app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
<string name="module_uninstall_success">%s uninstalled</string>
<string name="module_uninstall_failed">Failed to uninstall: %s</string>
<string name="module_version">Version</string>
<string name="module_id">Module ID</string>
<string name="module_author">Author</string>
<string name="module_overlay_fs_not_available">Modules are unavailable as OverlayFS is disabled by the kernel!</string>
<string name="refresh">Refresh</string>
Expand Down

0 comments on commit bae67d3

Please sign in to comment.