-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* save current progress on DAO coin UI * add support for transferring DAO coins in the UI, add inputs for other fields for DAO coin transaction * add burn support, add DAO coin tab to profile, use number abbreviation to keep DAO coin numbers manageable, move utility func for parsing hex balances to global vars * add some frontend validation in transfer modal * fix up DAO modals - add balances and validations, hit isHodling endpoint if transfer restriction status is DAO Members only * fix alignment on DAO coin page * disable mint and burn if the amount is less than or equal to 0 * add notifications for DAO coin txns * add sweet alerts before DAO actions, only show profile owner if transfer restriction status is profile owner only and logged in user is not profile owner * address TGS feedback * Fix errors when user does not have DAO coin yet
- Loading branch information
Showing
21 changed files
with
1,305 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
src/app/dao-coins/burn-dao-coin-modal/burn-dao-coin-modal.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<div app-theme class="nft-modal-container p-15px d-flex flex-column"> | ||
<div class="fs-20px"> | ||
Burn {{ balanceEntryResponse.ProfileEntryResponse?.Username }} DAO Coins | ||
</div> | ||
<div class="pt-15px"> | ||
Your Balance: {{ globalVars.hexNanosToUnitString(balanceEntryResponse.BalanceNanosUint256) }} {{ balanceEntryResponse.ProfileEntryResponse?.Username }} DAO Coins | ||
</div> | ||
<div class="input-group py-15px"> | ||
<div class="input-group-prepend"> | ||
<span class="input-group-text">Amount To Burn</span> | ||
</div> | ||
<input | ||
[(ngModel)]="amountToBurn" | ||
(ngModelChange)="updateValidationErrors()" | ||
class="form-control fs-15px text-right d-inline-block" | ||
type="number" | ||
min="0" | ||
placeholder="0" | ||
[disabled]="burningDAOCoin"/> | ||
</div> | ||
<button | ||
class="btn btn-primary font-weight-bold br-12px" | ||
style="height: 36px; width: 180px; line-height: 15px" | ||
(click)="burnDAOCoin()" | ||
[disabled]="burningDAOCoin || validationErrors.length" | ||
>Burn</button> | ||
<ng-container *ngIf="validationErrors.length"> | ||
<div *ngFor="let validationError of validationErrors" class="pt-5px fc-red"> | ||
{{ validationError }} | ||
</div> | ||
</ng-container> | ||
<div class="fc-red pt-5px" *ngIf="backendErrors"> | ||
{{ backendErrors }} | ||
</div> | ||
</div> |
Oops, something went wrong.