feat(Community Permissions): Hide `Who holds - Add` button when there are 5 items already added

Added logic to hidden  'Add' button when the number of items 5 is reached.

Closes #9195
This commit is contained in:
Noelia 2023-01-19 18:36:06 +01:00 committed by Noelia
parent 05c86e25aa
commit e08fdcb78c
1 changed files with 3 additions and 0 deletions

View File

@ -70,6 +70,8 @@ StatusScrollView {
QtObject {
id: d
readonly property int maxHoldingsItems: 5
readonly property int dropdownHorizontalOffset: 4
readonly property int dropdownVerticalOffset: 1
@ -195,6 +197,7 @@ StatusScrollView {
tagLeftPadding: 2
asset.height: 28
asset.width: asset.height
addButton.visible: itemsModel.count < d.maxHoldingsItems
property int editedIndex
itemsModel: SortFilterProxyModel {