settings: move support config to support
This commit is contained in:
@@ -43,7 +43,6 @@ exports = module.exports = {
|
||||
getGhosts,
|
||||
setGhosts,
|
||||
|
||||
getSupportConfig,
|
||||
provider,
|
||||
list,
|
||||
initCache,
|
||||
@@ -197,17 +196,6 @@ const gDefaults = (function () {
|
||||
|
||||
result[exports.GHOSTS_CONFIG_KEY] = {};
|
||||
|
||||
result[exports.SUPPORT_CONFIG_KEY] = {
|
||||
email: 'support@cloudron.io',
|
||||
remoteSupport: true,
|
||||
ticketFormBody:
|
||||
'Use this form to open support tickets. You can also write directly to [support@cloudron.io](mailto:support@cloudron.io).\n\n'
|
||||
+ '* [Knowledge Base & App Docs](https://docs.cloudron.io/apps/?support_view)\n'
|
||||
+ '* [Custom App Packaging & API](https://docs.cloudron.io/custom-apps/tutorial/?support_view)\n'
|
||||
+ '* [Forum](https://forum.cloudron.io/)\n\n',
|
||||
submitTickets: true
|
||||
};
|
||||
|
||||
return result;
|
||||
})();
|
||||
|
||||
@@ -535,13 +523,6 @@ async function setGhosts(ghosts) {
|
||||
notifyChange(exports.GHOSTS_CONFIG_KEY, ghosts);
|
||||
}
|
||||
|
||||
async function getSupportConfig() {
|
||||
const value = await get(exports.SUPPORT_CONFIG_KEY);
|
||||
if (value === null) return gDefaults[exports.SUPPORT_CONFIG_KEY];
|
||||
|
||||
return JSON.parse(value);
|
||||
}
|
||||
|
||||
async function getLanguage() {
|
||||
const value = await get(exports.LANGUAGE_KEY);
|
||||
if (value === null) return gDefaults[exports.LANGUAGE_KEY];
|
||||
|
||||
Reference in New Issue
Block a user