Danger modal: only shown when threshold exceeded; single acknowledge button; no auto-generate

This commit is contained in:
EP
2025-08-20 20:02:39 -07:00
parent 8b8342a54b
commit 96a289523f
2 changed files with 3 additions and 10 deletions
-1
View File
@@ -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>
+3 -9
View File
@@ -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() {