mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
minidlna: Show icon on app page
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
f19a5b746f
commit
4909e776ba
@ -34,7 +34,7 @@ version = 1
|
||||
|
||||
name = 'minidlna'
|
||||
|
||||
icon_name = name
|
||||
icon_filename = name
|
||||
|
||||
managed_packages = ['minidlna']
|
||||
|
||||
@ -73,7 +73,7 @@ class MiniDLNAApp(app_module.App):
|
||||
short_description=short_description,
|
||||
url_name='minidlna:index',
|
||||
parent_url_name='apps',
|
||||
icon=icon_name,
|
||||
icon=icon_filename,
|
||||
)
|
||||
firewall = Firewall('firewall-minidlna', name, ports=['minidlna'],
|
||||
is_external=False)
|
||||
@ -83,7 +83,7 @@ class MiniDLNAApp(app_module.App):
|
||||
name,
|
||||
short_description=short_description,
|
||||
description=description,
|
||||
icon=icon_name,
|
||||
icon=icon_filename,
|
||||
url='/_minidlna/',
|
||||
login_required=True,
|
||||
)
|
||||
|
||||
@ -35,6 +35,7 @@ class MiniDLNAAppView(AppView):
|
||||
description = minidlna.description
|
||||
form_class = MiniDLNAServerForm
|
||||
diagnostics_module_name = 'minidlna'
|
||||
icon_filename = minidlna.icon_filename
|
||||
|
||||
def get_initial(self):
|
||||
"""Initial form value as found in the minidlna.conf"""
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user