Chatwoot/app/javascript/shared/store/globalConfig.js
2020-07-26 21:50:59 +05:30

37 lines
653 B
JavaScript

const {
APP_VERSION: appVersion,
CREATE_NEW_ACCOUNT_FROM_DASHBOARD: createNewAccountFromDashboard,
INSTALLATION_NAME: installationName,
LOGO_THUMBNAIL: logoThumbnail,
LOGO: logo,
PRIVACY_URL: privacyURL,
TERMS_URL: termsURL,
WIDGET_BRAND_URL: widgetBrandURL,
} = window.globalConfig;
const state = {
appVersion,
createNewAccountFromDashboard,
installationName,
logo,
logoThumbnail,
privacyURL,
termsURL,
widgetBrandURL,
};
export const getters = {
get: $state => $state,
};
export const actions = {};
export const mutations = {};
export default {
namespaced: true,
state,
getters,
actions,
mutations,
};