Skip to content

Commit

Permalink
Merge branch 'master' into mainnet
Browse files Browse the repository at this point in the history
  • Loading branch information
shrpne committed Oct 19, 2020
2 parents 9b0388d + c40ccb8 commit 1ff54ce
Show file tree
Hide file tree
Showing 12 changed files with 43 additions and 32 deletions.
4 changes: 4 additions & 0 deletions .env.mainnet.example
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,7 @@ APP_AUTO_DELEGATION_API_URL=https://autodelegator-api.minter.network/api/v1/
APP_EXPLORER_API_URL=https://explorer-api.minter.network/api/v2/
APP_EXPLORER_RTM_URL=wss://explorer-rtm.minter.network/connection/websocket
APP_EXPLORER_HOST=https://explorer.minter.network



WEB_PORT_FOR_DOCKER_COMPOSE=5002
42 changes: 22 additions & 20 deletions components/CheckIssueForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -57,27 +57,29 @@
isLinkQrModalVisible: false,
};
},
validations: {
form: {
nonce: {
required,
},
dueBlock: {
},
value: {
required,
},
coinSymbol: {
required,
minLength: minLength(3),
},
password: {
required,
},
gasCoin: {
minLength: minLength(3),
validations() {
return {
form: {
nonce: {
required,
},
dueBlock: {
},
value: {
required,
},
coinSymbol: {
required,
minLength: this.$store.getters.isOfflineMode ? () => true : minLength(3),
},
password: {
required,
},
gasCoin: {
minLength: this.$store.getters.isOfflineMode ? () => true : minLength(3),
},
},
},
};
},
computed: {
...mapGetters({
Expand Down
4 changes: 2 additions & 2 deletions components/CoinBuyForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@
},
coinFrom: {
required,
minLength: minLength(3),
minLength: this.$store.getters.isOfflineMode ? () => true : minLength(3),
},
coinTo: {
required,
minLength: minLength(3),
minLength: this.$store.getters.isOfflineMode ? () => true : minLength(3),
},
};
Expand Down
4 changes: 2 additions & 2 deletions components/CoinSellAllForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@
const form = {
coinFrom: {
required,
minLength: minLength(3),
minLength: this.$store.getters.isOfflineMode ? () => true : minLength(3),
},
coinTo: {
required,
minLength: minLength(3),
minLength: this.$store.getters.isOfflineMode ? () => true : minLength(3),
},
};
Expand Down
4 changes: 2 additions & 2 deletions components/CoinSellForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@
},
coinFrom: {
required,
minLength: minLength(3),
minLength: this.$store.getters.isOfflineMode ? () => true : minLength(3),
},
coinTo: {
required,
minLength: minLength(3),
minLength: this.$store.getters.isOfflineMode ? () => true : minLength(3),
},
};
Expand Down
2 changes: 1 addition & 1 deletion components/CoinSendForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
},
coinSymbol: {
required,
minLength: minLength(3),
minLength: this.$store.getters.isOfflineMode ? () => true : minLength(3),
},
};
Expand Down
2 changes: 1 addition & 1 deletion components/ValidatorDeclareCandidacyForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
},
coinSymbol: {
required,
minLength: minLength(3),
minLength: this.$store.getters.isOfflineMode ? () => true : minLength(3),
},
};
Expand Down
2 changes: 1 addition & 1 deletion components/ValidatorDelegateForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
},
coinSymbol: {
required,
minLength: minLength(3),
minLength: this.$store.getters.isOfflineMode ? () => true : minLength(3),
},
};
Expand Down
2 changes: 1 addition & 1 deletion components/ValidatorUnbondForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
},
coinSymbol: {
required,
minLength: minLength(3),
minLength: this.$store.getters.isOfflineMode ? () => true : minLength(3),
},
};
Expand Down
3 changes: 3 additions & 0 deletions components/common/FieldCoin.vue
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@
},
},
mounted() {
if (this.$store.getters.isOfflineMode) {
return;
}
this.$store.dispatch('FETCH_COIN_LIST')
.then((coinListAll) => {
this.coinListAll = Object.freeze(coinListAll.map((item) => item.symbol));
Expand Down
2 changes: 1 addition & 1 deletion components/common/TxForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
validations() {
const form = {
gasCoin: {
minLength: minLength(3),
minLength: this.$store.getters.isOfflineMode ? () => true : minLength(3),
},
payload: {
maxLength: maxLength(1024),
Expand Down
4 changes: 3 additions & 1 deletion pages/wallet/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,10 @@
},
fetch({ app, store }) {
store.commit('SET_SECTION_NAME', app.$td('Wallet', 'common.page-wallet'));
if (store.getters.isOfflineMode) {
return;
}
store.dispatch('FETCH_VALIDATOR_LIST');
return Promise.resolve();
},
asyncData({ store }) {
if (store.getters.isOfflineMode) {
Expand Down

0 comments on commit 1ff54ce

Please sign in to comment.