jsxc: Allow disabling the app
Closes: #1872 (closed).
Previously, JSXC can't be disabled and it's shortcut appears on the homepage forever. Use the EnableState component which stores a flag in the sqlite database to maintain the status of app being enabled.
Tests:
-
Enable/disable button appears. Enabling/disabling the app updates the status currently.
-
Enabling the app shows icon on the homepage and disabling removes it.
-
Enabling shows the menu item in the apps page as enabled. Disabling shows the menu item in the apps page as disabled.
-
It is possible the uninstall the app. When app is uninstall it is removed from homepage and shows as disabled in the apps page.
-
When app is disabled or uninstalled, trying to visit the /plinth/apps/jsxc/jsxc/ throws a 404 error.
-
Run functional tests.
Signed-off-by: Sunil Mohan Adapa sunil@medhas.org