Skip to content

Commit

Permalink
remove mint dialogs from settingsview
Browse files Browse the repository at this point in the history
  • Loading branch information
callebtc committed May 19, 2024
1 parent 71de160 commit a162cc2
Showing 1 changed file with 0 additions and 148 deletions.
148 changes: 0 additions & 148 deletions src/components/SettingsView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -551,154 +551,6 @@
</q-expansion-item>
</q-list>
</div>

<q-dialog
v-model="showEditMintDialog"
backdrop-filter="blur(2px) brightness(60%)"
>
<q-card class="q-pa-lg" style="max-width: 500px; width: 100%">
<h6 class="q-my-md">Edit mint</h6>
<q-input
outlined
v-model="editMintData.url"
label="Mint URL"
type="textarea"
autogrow
class="q-mb-xs"
></q-input>
<q-input
outlined
v-model="editMintData.nickname"
label="Nickname"
type="textarea"
autogrow
class="q-mb-xs"
></q-input>
<div class="row q-mt-lg">
<q-btn
class="float-left"
v-close-popup
color="primary"
@click="updateMint(mintToEdit, editMintData)"
>Update</q-btn
>
<q-btn
icon="delete"
flat
class="float-left item-left text-left"
@click="showRemoveMintDialogWrapper(mintToEdit.url)"
/>
<q-btn v-close-popup flat class="q-ml-auto" color="grey"
>Cancel</q-btn
>
</div>
</q-card>
</q-dialog>

<q-dialog
v-model="showAddMintDialog"
@keydown.enter.prevent="addMintInternal(addMintData, (verbose = true))"
backdrop-filter="blur(2px) brightness(60%)"
>
<q-card class="q-pa-lg">
<h6 class="q-my-md">Do you trust this mint?</h6>
<p>
A Cashu mint controls the funds you send to it. Make sure that you
trust the operator of this mint.
</p>
<q-input
outlined
readonly
v-model="addMintData.url"
label="Mint URL"
type="textarea"
autogrow
class="q-mb-xs"
></q-input>
<div class="row q-mt-lg">
<div class="col">
<q-btn
class="float-left"
v-close-popup
color="primary"
icon="check"
:loading="addingMint"
@click="addMintInternal(addMintData, (verbose = true))"
>Add mint
</q-btn>
</div>
<div class="col">
<q-btn v-close-popup flat class="float-right" color="grey"
>Cancel</q-btn
>
</div>
</div>
</q-card>
</q-dialog>
<q-dialog
v-model="showRemoveMintDialog"
backdrop-filter="blur(2px) brightness(60%)"
>
<q-card class="q-pa-lg">
<h6 class="q-my-md">Are you sure you want to delete this mint?</h6>
<div v-if="mintToRemove.nickname">
<span class="text-weight-bold"> Nickname: </span>
<span class="text-weight-light"> {{ mintToRemove.nickname }}</span>
</div>
<div class="row q-my-md">
<div class="col">
<span class="text-weight-bold">Balances:</span>
<q-badge
v-for="unit in mintClass(mintToRemove).units"
:key="unit"
color="primary"
:label="
formatCurrency(mintClass(mintToRemove).unitBalance(unit), unit)
"
class="q-mx-xs"
/>
</div>
</div>
<q-input
outlined
readonly
v-model="mintToRemove.url"
label="Mint URL"
type="textarea"
autogrow
class="q-mb-xs"
></q-input>
<div class="row q-my-md">
<div class="col">
<span class="text-caption"
>Note: Because this wallet is paranoid, your ecash from this mint
will not be actually deleted but will remain stored on your
device. You will see it reappear if you re-add this mint later
again.</span
>
</div>
</div>
<div class="row q-mt-lg">
<div class="col">
<q-btn
v-close-popup
class="float-left"
color="primary"
@click="
showEditMintDialog = false;
removeMint(mintToRemove.url, (verbose = true));
"
>Remove mint</q-btn
>
</div>
<div class="col">
<q-btn v-close-popup flat color="grey" class="float-right"
>Cancel</q-btn
>
</div>
</div>
</q-card>
</q-dialog>
</div>

<!-- P2PK DIALOG -->
Expand Down

0 comments on commit a162cc2

Please sign in to comment.