mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-24 21:39:24 +00:00
59f604349c
refactor: wallet: connect current account refactor(@wallet): load collection and connect to store refactor(@wallet): add boilerplate for accounts creation/generation refactor(@wallet): watch account refactor(@wallet): Add account generation refactor(@wallet): display all accounts refactor(@wallet): switch account refactor(@desktop): update current currency refactor(@desktop/wallet): token action refactor(@desktop/wallet): Add update account refactor(@desktop/wallet): filter chat account from wallet refactor(@desktop/wallet): Update currency attribute refactor(@desktop/wallet): Fix display of various balances refactor(@dekstop/wallet): handle current account changed refactor(@wallet/desktop): add notify event on main section refactor(@desktop/wallet): Push events from service refactor(@desktop/wallet): handle all tokens event refactor(@desktop/wallet): refresh accounts on event refactor(@wallet/desktop): formatting of currency balances refactor(@desktop/wallet): load collectible refactor: refactor wallet transaction history to the new architecture update status-lib refactor: add back events for the transaction history refactor: support multiple accounts in the transaction history
72 lines
1.9 KiB
QML
72 lines
1.9 KiB
QML
import QtQuick 2.13
|
|
import QtGraphicalEffects 1.13
|
|
|
|
import utils 1.0
|
|
import "../../../../shared"
|
|
import "../../../../shared/popups"
|
|
import "../../../../shared/panels"
|
|
import "../../../../shared/status"
|
|
|
|
// TODO: replace with StatusModal
|
|
ModalPopup {
|
|
id: root
|
|
title: root.name || qsTr("unnamed")
|
|
property string name: "Furbeard"
|
|
|
|
property string collectibleId: "1423"
|
|
property url imageUrl: ""
|
|
property string description: "Avast ye! I'm the dread pirate Furbeard, and I'll most likely sleep"
|
|
property string permalink: "https://www.cryptokitties.co/"
|
|
property var openModal: function (options) {
|
|
root.name = options.name;
|
|
root.collectibleId = options.collectibleId;
|
|
root.description = options.description;
|
|
root.imageUrl = options.imageUrl;
|
|
root.permalink = options.permalink;
|
|
root.open();
|
|
}
|
|
|
|
Item {
|
|
width: parent.width
|
|
|
|
RoundedImage {
|
|
id: collectibleImage
|
|
width: 248
|
|
height: 248
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
radius: 16
|
|
fillMode: Image.PreserveAspectCrop
|
|
source: root.imageUrl
|
|
}
|
|
|
|
TextWithLabel {
|
|
id: idText
|
|
anchors.top: collectibleImage.bottom
|
|
label: qsTr("id")
|
|
text: root.collectibleId
|
|
}
|
|
|
|
|
|
TextWithLabel {
|
|
id: description
|
|
anchors.top: idText.bottom
|
|
visible: !!root.description
|
|
wrap: true
|
|
label: qsTr("description")
|
|
text: root.description
|
|
}
|
|
}
|
|
|
|
footer: StatusButton {
|
|
anchors.right: parent.right
|
|
anchors.rightMargin: Style.current.padding
|
|
text: qsTr("View in Opensea")
|
|
onClicked: {
|
|
//TOOD improve this to not use dynamic scoping
|
|
appMain.openLink(root.permalink);
|
|
root.close();
|
|
}
|
|
}
|
|
}
|
|
|