fix(ticker_sale): only show mana options if currentWorker has mana
gitea/salix/pipeline/head There was a failure building this commit
Details
gitea/salix/pipeline/head There was a failure building this commit
Details
This commit is contained in:
parent
8e27ab612d
commit
b78ecc06d2
|
@ -288,7 +288,7 @@
|
||||||
clear-disabled="true"
|
clear-disabled="true"
|
||||||
suffix="%">
|
suffix="%">
|
||||||
</vn-input-number>
|
</vn-input-number>
|
||||||
<vn-vertical ng-if="$ctrl.edit.mana != 0">
|
<vn-vertical ng-if="$ctrl.currentWorkerMana != 0">
|
||||||
<vn-radio
|
<vn-radio
|
||||||
label="Promotion mana"
|
label="Promotion mana"
|
||||||
val="mana"
|
val="mana"
|
||||||
|
|
|
@ -75,6 +75,14 @@ class Controller extends Section {
|
||||||
this.$.editPricePopover.relocate();
|
this.$.editPricePopover.relocate();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
this.getCurrentWorkerMana();
|
||||||
|
}
|
||||||
|
|
||||||
|
getCurrentWorkerMana() {
|
||||||
|
this.$http.get(`WorkerManas/getCurrentWorkerMana`)
|
||||||
|
.then(res => {
|
||||||
|
this.currentWorkerMana = res.data;
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue