mirror of
https://github.com/inventree/inventree-app.git
synced 2025-04-28 13:36:50 +00:00
Add plugin support status to server information screen
This commit is contained in:
parent
9f6269375f
commit
bc53dafaba
@ -590,6 +590,12 @@
|
||||
"pluginPrinter": "Printer",
|
||||
"@pluginPrinter": {},
|
||||
|
||||
"pluginSupport": "Plugin Support Enabled",
|
||||
"@pluginSupport": {},
|
||||
|
||||
"pluginSupportDetail": "The server supports custom plugins",
|
||||
"@pluginSupportDetail": {},
|
||||
|
||||
"printLabelFailure": "Label printing failed",
|
||||
"@printLabelFailure": {},
|
||||
|
||||
|
@ -102,6 +102,18 @@ class InvenTreeAboutWidget extends StatelessWidget {
|
||||
leading: FaIcon(FontAwesomeIcons.server),
|
||||
)
|
||||
);
|
||||
|
||||
// Display extra tile if the server supports plugins
|
||||
if (InvenTreeAPI().pluginsEnabled()) {
|
||||
tiles.add(
|
||||
ListTile(
|
||||
title: Text(L10().pluginSupport),
|
||||
subtitle: Text(L10().pluginSupportDetail),
|
||||
leading: FaIcon(FontAwesomeIcons.plug),
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
} else {
|
||||
tiles.add(
|
||||
ListTile(
|
||||
|
Loading…
x
Reference in New Issue
Block a user