clean up for review, fix eslint/prettier conflict problem
This commit is contained in:
parent
28370cb714
commit
ff49d6c1a5
|
@ -1,3 +1,5 @@
|
|||
// Must be included inside .stylintrc, otherwise will conflict and cause weird
|
||||
// linting errors
|
||||
module.exports = {
|
||||
printWidth: 120
|
||||
};
|
||||
|
|
|
@ -31,5 +31,6 @@
|
|||
"universal": "never",
|
||||
"valid": true,
|
||||
"zeroUnits": "never",
|
||||
"zIndexNormalize": false
|
||||
"zIndexNormalize": false,
|
||||
"printWidth": 120
|
||||
}
|
||||
|
|
|
@ -1,31 +0,0 @@
|
|||
{
|
||||
"presets": [
|
||||
[
|
||||
"@babel/preset-env",
|
||||
{
|
||||
"modules": false,
|
||||
"loose": false,
|
||||
"useBuiltIns": "usage"
|
||||
}
|
||||
],
|
||||
[
|
||||
"@babel/preset-stage-2",
|
||||
{
|
||||
"modules": false,
|
||||
"loose": false,
|
||||
"useBuiltIns": true,
|
||||
"decoratorsLegacy": true
|
||||
}
|
||||
]
|
||||
],
|
||||
"plugins": [
|
||||
[
|
||||
"@babel/transform-runtime",
|
||||
{
|
||||
"polyfill": false,
|
||||
"regenerator": false
|
||||
}
|
||||
]
|
||||
],
|
||||
"comments": false
|
||||
}
|
|
@ -419,8 +419,6 @@ export class Daemon {
|
|||
});
|
||||
}
|
||||
|
||||
// Get the latest service node data, used to do it in background
|
||||
// so no user feedback required
|
||||
updateServiceNodes() {
|
||||
const service_nodes = {
|
||||
fetching: true
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
<template>
|
||||
<div class="service-node-stake-tab">
|
||||
<div class="q-pa-md">
|
||||
<!-- use placeholder with the i18n here -->
|
||||
|
||||
<div class="row align-items sn-contribution-info">
|
||||
<div class="col-md-8">
|
||||
<div class="header">{{ $t("titles.availableForContribution") }}</div>
|
||||
|
@ -66,13 +64,12 @@ export default {
|
|||
this.scrollToTop();
|
||||
const key = node.service_node_pubkey;
|
||||
const minContribution = node.minContribution;
|
||||
// close the popup if it's open
|
||||
// close the detail popup if it's open
|
||||
this.$refs.serviceNodeDetailsContribute.isVisible = false;
|
||||
this.$emit("contribute", key, minContribution);
|
||||
this.$q.notify({
|
||||
type: "positive",
|
||||
timeout: 1000,
|
||||
// translate
|
||||
message: this.$t("notification.positive.serviceNodeInfoFilled")
|
||||
});
|
||||
},
|
||||
|
|
|
@ -49,7 +49,7 @@
|
|||
</div>
|
||||
<ServiceNodeContribute class="contribute" @contribute="fillStakingFields" />
|
||||
<q-inner-loading :showing="stake_status.sending || tx_status.sending" :dark="theme == 'dark'">
|
||||
<q-spinner color="red" size="30" />
|
||||
<q-spinner color="primary" size="30" />
|
||||
</q-inner-loading>
|
||||
</div>
|
||||
</template>
|
||||
|
|
|
@ -48,10 +48,6 @@ export default {
|
|||
menuItems
|
||||
};
|
||||
},
|
||||
created() {
|
||||
const showing = this.unlock_status.sending || this.fetching;
|
||||
console.log("is the fetching bar showing?" + showing);
|
||||
},
|
||||
computed: mapState({
|
||||
theme: state => state.gateway.app.config.appearance.theme,
|
||||
unlock_status: state => state.gateway.service_node_status.unlock,
|
||||
|
|
Loading…
Reference in New Issue