Skip to content

remove IDO label tag #1311

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 20, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions atomic_defi_design/qml/Constants/General.qml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ QtObject {
}
}

function isIDO(ticker) {
let IDO_chains = []
return IDO_chains.includes(ticker)
}

// Returns the icon full path of a coin type.
// If the given coin type has spaces, it will be replaced by '-' characters.
// If the given coin type is empty, returns an empty string.
Expand Down
2 changes: 1 addition & 1 deletion atomic_defi_design/qml/Portfolio/AssetsList.qml
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ Dex.DefaultListView

Dex.DexLabel
{
enabled: name === "Tokel"
enabled: Dex.General.isIDO(ticker)
visible: enabled
anchors.left: parent.right
anchors.leftMargin: 5
Expand Down
2 changes: 1 addition & 1 deletion atomic_defi_design/qml/Portfolio/TableDex.qml
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ Item {

DefaultText
{
enabled: name === "Tokel"
enabled: General.isIDO(ticker)
visible: enabled
anchors.left: parent.right
anchors.leftMargin: 5
Expand Down
2 changes: 1 addition & 1 deletion atomic_defi_design/qml/Wallet/EnableCoinModal.qml
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ BasicModal {
anchors.left: typeTag.right
anchors.leftMargin: 3
anchors.verticalCenter: parent.verticalCenter
enabled: model.ticker === "TKL"
enabled: General.isIDO(ticker)
visible: enabled
type: "IDO"
}
Expand Down