mirror of
https://github.com/elder-plinius/P4RS3LT0NGV3.git
synced 2026-07-25 13:30:49 +02:00
Danger modal: only shown when threshold exceeded; single acknowledge button; no auto-generate
This commit is contained in:
@@ -816,7 +816,6 @@
|
||||
<p>Proceed only if you fully understand the risks and are testing in a safe, isolated environment.</p>
|
||||
</div>
|
||||
<div class="danger-actions">
|
||||
<button class="danger-cancel" @click="cancelDangerAction">Cancel</button>
|
||||
<button class="danger-proceed" @click="proceedDangerAction"><i class="fas fa-skull-crossbones"></i> I understand, proceed</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -90,8 +90,7 @@ window.app = new Vue({
|
||||
|
||||
// Danger zone controls
|
||||
showDangerModal: false,
|
||||
dangerThresholdTokens: 25_000_000,
|
||||
_pendingTokenadeAction: null
|
||||
dangerThresholdTokens: 25_000_000
|
||||
},
|
||||
methods: {
|
||||
toggleUnicodePanel() {
|
||||
@@ -1715,19 +1714,14 @@ window.app = new Vue({
|
||||
checkTokenadeDangerThenGenerate() {
|
||||
const estTokens = this.estimateTokenadeTokens();
|
||||
if (estTokens > this.dangerThresholdTokens) {
|
||||
this._pendingTokenadeAction = 'generate';
|
||||
this.showDangerModal = true;
|
||||
return;
|
||||
}
|
||||
this.generateTokenBomb();
|
||||
},
|
||||
|
||||
// Proceed/cancel handlers for modal
|
||||
proceedDangerAction() {
|
||||
const action = this._pendingTokenadeAction; this._pendingTokenadeAction = null; this.showDangerModal = false;
|
||||
if (action === 'generate') this.generateTokenBomb();
|
||||
},
|
||||
cancelDangerAction() { this._pendingTokenadeAction = null; this.showDangerModal = false; },
|
||||
// Modal acknowledge handler
|
||||
proceedDangerAction() { this.showDangerModal = false; },
|
||||
|
||||
// Token Bomb Generator Logic
|
||||
generateTokenBomb() {
|
||||
|
||||
Reference in New Issue
Block a user