chore: several object names for permissions tags

This commit is contained in:
Anastasiya Semenkevich 2023-12-28 18:10:09 +03:00 committed by Anastasiya
parent 235992b0f9
commit 73025c5a0a
2 changed files with 4 additions and 1 deletions

View File

@ -113,4 +113,4 @@ communityItem_CommunityListItem = {"container": statusDesktop_mainWindow_overlay
editPermissionView_switchItem_StatusSwitch = {"checkable": True, "container": mainWindow_editPermissionView_EditPermissionView, "id": "switchItem", "type": "StatusSwitch", "unnamed": 1, "visible": True} editPermissionView_switchItem_StatusSwitch = {"checkable": True, "container": mainWindow_editPermissionView_EditPermissionView, "id": "switchItem", "type": "StatusSwitch", "unnamed": 1, "visible": True}
editPermissionView_Create_permission_StatusButton = {"checkable": False, "container": mainWindow_editPermissionView_EditPermissionView, "text": "Create permission", "type": "StatusButton", "unnamed": 1, "visible": True} editPermissionView_Create_permission_StatusButton = {"checkable": False, "container": mainWindow_editPermissionView_EditPermissionView, "text": "Create permission", "type": "StatusButton", "unnamed": 1, "visible": True}
mainWindow_PermissionsView = {"container": mainWindow_StatusWindow, "type": "PermissionsView", "unnamed": 1, "visible": True} mainWindow_PermissionsView = {"container": mainWindow_StatusWindow, "type": "PermissionsView", "unnamed": 1, "visible": True}
o_StatusListItemTag = {"container": mainWindow_PermissionsView, "type": "StatusListItemTag", "unnamed": 1, "visible": True} o_StatusListItemTag = {"container": mainWindow_PermissionsView, "type": "StatusListItemTag", "visible": True}

View File

@ -129,6 +129,7 @@ Control{
model: root.holdingsListModel model: root.holdingsListModel
StatusListItemTag { StatusListItemTag {
objectName: "whoHoldsStatusListItem"
height: d.flowRowHeight height: d.flowRowHeight
width: (implicitWidth > content.width) ? content.width : implicitWidth width: (implicitWidth > content.width) ? content.width : implicitWidth
leftPadding: 2 leftPadding: 2
@ -188,6 +189,7 @@ Control{
spacing: 6 spacing: 6
StatusListItemTag { StatusListItemTag {
objectName: "isAllowedStatusListItem"
height: d.flowRowHeight height: d.flowRowHeight
title: PermissionTypes.getName(model.permissionType === PermissionTypes.Type.None title: PermissionTypes.getName(model.permissionType === PermissionTypes.Type.None
? root.permissionType : model.permissionType) ? root.permissionType : model.permissionType)
@ -221,6 +223,7 @@ Control{
model: root.channelsListModel model: root.channelsListModel
StatusListItemTag { StatusListItemTag {
objectName: "inCommunityStatusListItem"
readonly property bool isLetterIdenticon: !model.imageSource readonly property bool isLetterIdenticon: !model.imageSource
asset.isLetterIdenticon: isLetterIdenticon asset.isLetterIdenticon: isLetterIdenticon