Skip to content

Commit

Permalink
Merge pull request #2425 from KomodoPlatform/add/kip2024
Browse files Browse the repository at this point in the history
Adds button for vote coin wallets linking to details
  • Loading branch information
smk762 committed Apr 8, 2024
2 parents fa1821f + 7bd6127 commit d8ce050
Show file tree
Hide file tree
Showing 13 changed files with 610 additions and 492 deletions.
5 changes: 5 additions & 0 deletions atomic_defi_design/Dex/Constants/General.qml
Expand Up @@ -88,6 +88,11 @@ QtObject {
return API.app.portfolio_pg.global_cfg_mdl.get_coin_info(ticker).is_faucet_coin
}

function isVoteCoin(ticker)
{
return API.app.portfolio_pg.global_cfg_mdl.get_coin_info(ticker).is_vote_coin
}

function isCoinWithMemo(ticker)
{
return API.app.portfolio_pg.global_cfg_mdl.get_coin_info(ticker).has_memos
Expand Down
44 changes: 44 additions & 0 deletions atomic_defi_design/Dex/Wallet/Main.qml
Expand Up @@ -657,6 +657,50 @@ Item
}
}

// Proposals Button
Item
{
Layout.preferredWidth: 165
Layout.preferredHeight: 40
visible: current_ticker_infos.is_vote_coin

DefaultButton
{
enabled: activation_pct == 100
anchors.fill: parent
radius: 18
label.text: qsTr("Vote Info")
label.font.pixelSize: 16
content.anchors.left: content.parent.left
content.anchors.leftMargin: enabled ? 23 : 48
content.anchors.rightMargin: 23

onClicked: Qt.openUrlExternally("https://vote.komodoplatform.com/")

Row
{
anchors.verticalCenter: parent.verticalCenter
anchors.right: parent.right
anchors.rightMargin: 23

Qaterial.Icon
{
icon: Qaterial.Icons.vote
size: 24
anchors.verticalCenter: parent.verticalCenter
color: "#2c87b9"
}
}
}

// Faucet button error icon
DefaultAlertIcon
{
visible: activation_pct != 100
tooltipText: api_wallet_page.ticker + qsTr(" Activation: " + activation_pct + "%")
}
}

Component.onCompleted: api_wallet_page.claimingFaucetRpcDataChanged.connect(onClaimFaucetRpcResultChanged)
Component.onDestruction: api_wallet_page.claimingFaucetRpcDataChanged.disconnect(onClaimFaucetRpcResultChanged)
function onClaimFaucetRpcResultChanged() { claimFaucetResultModal.open() }
Expand Down
170 changes: 89 additions & 81 deletions atomic_defi_design/assets/languages/atomic_defi_de.ts

Large diffs are not rendered by default.

0 comments on commit d8ce050

Please sign in to comment.