app: info: Move client validation to info component

- Each app does not have to call the validator by itself.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
This commit is contained in:
Sunil Mohan Adapa authored and Veiko Aasa committed 2021-01-04 13:47:39 +02:00
1 parent 5f3c691c38
commit 6fc9e228a0
32 files changed
+105 -106

No files matched your search

+3 -3
View File
@@ -2,12 +2,12 @@
from django.utils.translation import ugettext_lazy as _
from plinth.clients import store_url, validate
from plinth.clients import store_url
_android_package_id = 'im.vector.app'
_element_desktop_download_url = 'https://element.io/get-started'
clients = validate([{
clients = [{
'name':
_('Element'),
'platforms': [{
@@ -41,7 +41,7 @@ clients = validate([{
'os': 'windows',
'url': _element_desktop_download_url,
}]
}])
}]
backup = {
'config': {