This commit is contained in:
@@ -22,7 +22,7 @@ export default new Vuex.Store({
|
||||
localeText: {},
|
||||
locale: {
|
||||
languageOverride: "en-US",
|
||||
timeZoneOverride: ".",
|
||||
timeZoneOverride: "America/New_York",
|
||||
currencyName: "USD",
|
||||
hour12: true
|
||||
},
|
||||
@@ -54,14 +54,10 @@ export default new Vuex.Store({
|
||||
state.localeText = {};
|
||||
state.formCustomTemplate = {};
|
||||
state.apiUrl = "";
|
||||
state.locale.tag = "en-US";
|
||||
state.locale.decimalSeparator = ".";
|
||||
state.locale.languageOverride = "en-US";
|
||||
state.locale.timeZoneOverride = "America/New_York";
|
||||
state.locale.currencyName = "USD";
|
||||
state.locale.hour12 = true;
|
||||
// state.locale.shortDate = "YYYY-MM-DD";
|
||||
// state.locale.shortTime = "hh:mm:ss A";
|
||||
// state.locale.shortDateAndTime = "YYYY-MM-DD hh:mm:ss A";
|
||||
state.locale.timeZoneOffset = -7;
|
||||
},
|
||||
addNavItem(state, data) {
|
||||
state.navItems.push(data);
|
||||
@@ -76,14 +72,10 @@ export default new Vuex.Store({
|
||||
},
|
||||
setLocale(state, data) {
|
||||
// mutate state
|
||||
state.locale.decimalSeparator = data.decimalSeparator;
|
||||
state.locale.languageOverride = data.languageOverride;
|
||||
state.locale.currencyName = data.currencyName;
|
||||
state.locale.hour12 = data.hour12;
|
||||
// state.locale.shortDate = data.shortDate;
|
||||
// state.locale.shortTime = data.shortTime;
|
||||
// state.locale.shortDateAndTime = data.shortDateAndTime;
|
||||
state.locale.timeZoneOffset = data.timeZoneOffset;
|
||||
state.locale.tag = data.tag;
|
||||
state.locale.timeZoneOverride = data.timeZoneOverride;
|
||||
},
|
||||
setAPIURL(state, data) {
|
||||
state.apiUrl = data;
|
||||
|
||||
Reference in New Issue
Block a user