mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 11:36:24 +00:00
Add plugin support status to server information screen
This commit is contained in:
parent
9f6269375f
commit
bc53dafaba
2 changed files with 18 additions and 0 deletions
|
|
@ -590,6 +590,12 @@
|
||||||
"pluginPrinter": "Printer",
|
"pluginPrinter": "Printer",
|
||||||
"@pluginPrinter": {},
|
"@pluginPrinter": {},
|
||||||
|
|
||||||
|
"pluginSupport": "Plugin Support Enabled",
|
||||||
|
"@pluginSupport": {},
|
||||||
|
|
||||||
|
"pluginSupportDetail": "The server supports custom plugins",
|
||||||
|
"@pluginSupportDetail": {},
|
||||||
|
|
||||||
"printLabelFailure": "Label printing failed",
|
"printLabelFailure": "Label printing failed",
|
||||||
"@printLabelFailure": {},
|
"@printLabelFailure": {},
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -102,6 +102,18 @@ class InvenTreeAboutWidget extends StatelessWidget {
|
||||||
leading: FaIcon(FontAwesomeIcons.server),
|
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 {
|
} else {
|
||||||
tiles.add(
|
tiles.add(
|
||||||
ListTile(
|
ListTile(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue