diff --git a/basic/srv/vm/mgr/wsgiapp.py b/basic/srv/vm/mgr/wsgiapp.py index f7f8048..d786c7a 100644 --- a/basic/srv/vm/mgr/wsgiapp.py +++ b/basic/srv/vm/mgr/wsgiapp.py @@ -297,7 +297,7 @@ class WSGIApp(object): return self.render_json({'ok': self.render_setup_apps_row(app, app_title)}) def install_app_action(self, request): - # Registers the application installation as pending. + # Registers the application installation as pending if self.pkgmgr.pending: return self.render_json({'error': request.session.lang.installation_in_progress()}) try: @@ -322,6 +322,8 @@ class WSGIApp(object): def uninstall_app_action(self, request): # Uninstalls application + if self.pkgmgr.pending: + return self.render_json({'error': request.session.lang.installation_in_progress()}) try: app = request.form['app'] app_title = self.conf['apps'][app]['title'] diff --git a/basic/srv/vm/templates/setup-host.html b/basic/srv/vm/templates/setup-host.html index b9a9d13..96bbfcd 100644 --- a/basic/srv/vm/templates/setup-host.html +++ b/basic/srv/vm/templates/setup-host.html @@ -87,7 +87,7 @@ -