mirror of
https://github.com/webmin/webmin.git
synced 2026-09-22 21:40:39 +01:00
Fix UI Demo module category
This commit is contained in:
@@ -133,17 +133,6 @@ if ($mode eq "modules" && foreign_available("webmin")) {
|
||||
'icon' => '/images/reload.png' });
|
||||
}
|
||||
|
||||
# Show the UI demo module when it has been dropped into the Webmin root,
|
||||
# so it is reachable even before it has been added to the user's module list
|
||||
if (-d &module_root_directory('ui-demo')) {
|
||||
my %ui_demo = &get_module_info('ui-demo');
|
||||
push(@leftitems, { 'type' => 'item',
|
||||
'id' => 'ui-demo',
|
||||
'desc' => $ui_demo{'desc'} || 'UI Demo',
|
||||
'icon' => '/ui-demo/images/menu.svg',
|
||||
'link' => '/ui-demo/' });
|
||||
}
|
||||
|
||||
# Show logout link
|
||||
get_miniserv_config(\%miniserv);
|
||||
if ($miniserv{'logout'} && !$ENV{'SSL_USER'} && !$ENV{'LOCAL_USER'} &&
|
||||
|
||||
@@ -4,7 +4,7 @@ A read-only Webmin module that shows the widgets added at the end of
|
||||
`ui-lib.pl` next to the existing tabs, forms, buttons and tables they are
|
||||
meant to be combined with. It is a reference for writing new modules and
|
||||
is not part of the Webmin distribution. Dropping this directory into the
|
||||
Webmin root is enough to make it appear under the *Others* category.
|
||||
Webmin root is enough to make it appear under the *Tools* category.
|
||||
|
||||
## What it shows
|
||||
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
desc=UI Demo
|
||||
longdesc=Read-only gallery of the widgets in ui-lib.pl and of the existing forms, buttons and tables they are meant to be combined with. A reference for writing new modules; not part of the distribution.
|
||||
category=others
|
||||
os_support=*
|
||||
noacl=1
|
||||
readonly=1
|
||||
|
||||
Reference in New Issue
Block a user