Skip to content

Commit

Permalink
Merge pull request #1311 from KomodoPlatform/remove_ido
Browse files Browse the repository at this point in the history
remove IDO label tag
  • Loading branch information
tonymorony authored Sep 20, 2021
2 parents be7f4dd + b6746c1 commit 619003d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
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

0 comments on commit 619003d

Please sign in to comment.