2020-10-04 23:03:37 +00:00
|
|
|
import QtQuick 2.3
|
|
|
|
import QtQuick.Controls 2.3
|
|
|
|
import QtQuick.Layouts 1.3
|
|
|
|
import Qt.labs.platform 1.1
|
2021-09-28 15:04:06 +00:00
|
|
|
|
2021-10-06 09:16:39 +00:00
|
|
|
import StatusQ.Core 0.1
|
|
|
|
import StatusQ.Core.Theme 0.1
|
|
|
|
|
2021-09-28 15:04:06 +00:00
|
|
|
import utils 1.0
|
2021-10-27 21:27:49 +00:00
|
|
|
import shared 1.0
|
2020-10-04 23:03:37 +00:00
|
|
|
|
|
|
|
Item {
|
|
|
|
property string name: "permission-name-here"
|
|
|
|
|
|
|
|
height: 50
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.left: parent.left
|
|
|
|
|
|
|
|
signal removeBtnClicked(string permission)
|
|
|
|
|
2021-10-06 09:16:39 +00:00
|
|
|
StatusBaseText {
|
2020-10-04 23:03:37 +00:00
|
|
|
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
|
|
|
|
}
|
|
|
|
|
2022-02-09 09:43:23 +00:00
|
|
|
|
2021-10-06 09:16:39 +00:00
|
|
|
StatusBaseText {
|
2021-02-18 16:36:05 +00:00
|
|
|
//% "Revoke access"
|
|
|
|
text: qsTrId("revoke-access")
|
2021-10-06 09:16:39 +00:00
|
|
|
color: Theme.palette.dangerColor1
|
2020-10-04 23:03:37 +00:00
|
|
|
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)
|
|
|
|
}
|
|
|
|
}
|
2022-02-09 09:43:23 +00:00
|
|
|
|
2020-10-04 23:03:37 +00:00
|
|
|
}
|