mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-20 10:34:30 +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'
|
name = 'minidlna'
|
||||||
|
|
||||||
icon_name = name
|
icon_filename = name
|
||||||
|
|
||||||
managed_packages = ['minidlna']
|
managed_packages = ['minidlna']
|
||||||
|
|
||||||
@ -73,7 +73,7 @@ class MiniDLNAApp(app_module.App):
|
|||||||
short_description=short_description,
|
short_description=short_description,
|
||||||
url_name='minidlna:index',
|
url_name='minidlna:index',
|
||||||
parent_url_name='apps',
|
parent_url_name='apps',
|
||||||
icon=icon_name,
|
icon=icon_filename,
|
||||||
)
|
)
|
||||||
firewall = Firewall('firewall-minidlna', name, ports=['minidlna'],
|
firewall = Firewall('firewall-minidlna', name, ports=['minidlna'],
|
||||||
is_external=False)
|
is_external=False)
|
||||||
@ -83,7 +83,7 @@ class MiniDLNAApp(app_module.App):
|
|||||||
name,
|
name,
|
||||||
short_description=short_description,
|
short_description=short_description,
|
||||||
description=description,
|
description=description,
|
||||||
icon=icon_name,
|
icon=icon_filename,
|
||||||
url='/_minidlna/',
|
url='/_minidlna/',
|
||||||
login_required=True,
|
login_required=True,
|
||||||
)
|
)
|
||||||
|
|||||||
@ -35,6 +35,7 @@ class MiniDLNAAppView(AppView):
|
|||||||
description = minidlna.description
|
description = minidlna.description
|
||||||
form_class = MiniDLNAServerForm
|
form_class = MiniDLNAServerForm
|
||||||
diagnostics_module_name = 'minidlna'
|
diagnostics_module_name = 'minidlna'
|
||||||
|
icon_filename = minidlna.icon_filename
|
||||||
|
|
||||||
def get_initial(self):
|
def get_initial(self):
|
||||||
"""Initial form value as found in the minidlna.conf"""
|
"""Initial form value as found in the minidlna.conf"""
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user