47 lines
1.1 KiB
QML
47 lines
1.1 KiB
QML
|
import QtQuick 2.3
|
||
|
import QtQuick.Controls 2.3
|
||
|
import QtQuick.Layouts 1.3
|
||
|
import Qt.labs.platform 1.1
|
||
|
import "../../../../../imports"
|
||
|
import "../../../../../shared"
|
||
|
|
||
|
Item {
|
||
|
property string name: "permission-name-here"
|
||
|
|
||
|
height: 50
|
||
|
anchors.right: parent.right
|
||
|
anchors.left: parent.left
|
||
|
|
||
|
signal removeBtnClicked(string permission)
|
||
|
|
||
|
StyledText {
|
||
|
id: dappText
|
||
|
text: name
|
||
|
elide: Text.ElideRight
|
||
|
anchors.right: parent.right
|
||
|
anchors.rightMargin: Style.current.padding
|
||
|
font.pixelSize: 17
|
||
|
anchors.top: parent.top
|
||
|
anchors.topMargin: Style.current.smallPadding
|
||
|
anchors.left: parent.left
|
||
|
anchors.leftMargin: Style.current.padding
|
||
|
}
|
||
|
|
||
|
|
||
|
StyledText {
|
||
|
text: qsTr("Revoke access")
|
||
|
color: Style.current.red
|
||
|
anchors.top: parent.top
|
||
|
anchors.topMargin: Style.current.smallPadding
|
||
|
anchors.right: parent.right
|
||
|
anchors.rightMargin: Style.current.padding
|
||
|
|
||
|
MouseArea {
|
||
|
cursorShape: Qt.PointingHandCursor
|
||
|
anchors.fill: parent
|
||
|
onClicked: removeBtnClicked(name)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
}
|