From bc53dafaba4653f609b8091bb4bc9b026159d027 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Tue, 10 May 2022 08:12:53 +1000 Subject: [PATCH] Add plugin support status to server information screen --- lib/l10n/app_en.arb | 6 ++++++ lib/settings/about.dart | 12 ++++++++++++ 2 files changed, 18 insertions(+) diff --git a/lib/l10n/app_en.arb b/lib/l10n/app_en.arb index 02cb93b5..3b13d9cf 100644 --- a/lib/l10n/app_en.arb +++ b/lib/l10n/app_en.arb @@ -590,6 +590,12 @@ "pluginPrinter": "Printer", "@pluginPrinter": {}, + "pluginSupport": "Plugin Support Enabled", + "@pluginSupport": {}, + + "pluginSupportDetail": "The server supports custom plugins", + "@pluginSupportDetail": {}, + "printLabelFailure": "Label printing failed", "@printLabelFailure": {}, diff --git a/lib/settings/about.dart b/lib/settings/about.dart index f62179cd..7ba8c5dc 100644 --- a/lib/settings/about.dart +++ b/lib/settings/about.dart @@ -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(