This commit is contained in:
2020-02-05 23:51:15 +00:00
parent fa56b99f6f
commit ce13b1230b
5 changed files with 43 additions and 21 deletions

View File

@@ -24,9 +24,10 @@ export default new Vuex.Store({
tag: "en-US",
decimalSeparator: ".",
currencySymbol: "$",
shortDate: "YYYY-MM-DD",
shortTime: "hh:mm:ss A",
shortDateAndTime: "YYYY-MM-DD hh:mm:ss A",
hour12: true,
// shortDate: "YYYY-MM-DD",
// shortTime: "hh:mm:ss A",
// shortDateAndTime: "YYYY-MM-DD hh:mm:ss A",
timeZoneOffset: -7 //timeZoneOffset is in decimal hours
},
navItems: [],
@@ -60,9 +61,10 @@ export default new Vuex.Store({
state.locale.tag = "en-US";
state.locale.decimalSeparator = ".";
state.locale.currencySymbol = "$";
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.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) {
@@ -80,9 +82,10 @@ export default new Vuex.Store({
// mutate state
state.locale.decimalSeparator = data.decimalSeparator;
state.locale.currencySymbol = data.currencySymbol;
state.locale.shortDate = data.shortDate;
state.locale.shortTime = data.shortTime;
state.locale.shortDateAndTime = data.shortDateAndTime;
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;
},