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:
parent
05c86e25aa
commit
e08fdcb78c
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue