property bool backgroundsVisible: true
property bool canCreateLinkShares: true
+ property bool canReshare: true
readonly property bool isLinkShare: model.shareType === ShareModel.ShareTypeLink
readonly property bool isPlaceholderLinkShare: model.shareType === ShareModel.ShareTypePlaceholderLink
shareModelData: model
canCreateLinkShares: root.canCreateLinkShares
+ canReshare: root.canReshare
onCloseShareDetails: root.rootStackView.pop(root.rootStackView.initialItem, StackView.PopTransition)
property var shareModelData: ({})
property bool canCreateLinkShares: true
+ property bool canReshare: true
readonly property var share: shareModelData.share ?? ({})
checkable: true
checked: root.resharingAllowed
text: qsTr("Allow resharing")
- enabled: !root.isSharePermissionChangeInProgress
+ enabled: !root.isSharePermissionChangeInProgress && root.canReshare
+ visible: root.canReshare
onClicked: root.toggleAllowResharing(checked);
Connections {
readonly property bool sharingPossible: shareModel && shareModel.canShare && shareModel.sharingEnabled
readonly property bool userGroupSharingPossible: sharingPossible && shareModel.userGroupSharingEnabled
readonly property bool publicLinkSharingPossible: sharingPossible && shareModel.publicLinkSharesEnabled
+ readonly property bool resharingAllowed: shareModel && shareModel.resharingAllowed
readonly property bool loading: sharingPossible && (!shareModel ||
shareModel.fetchOngoing ||
rootStackView: root.rootStackView
backgroundsVisible: root.backgroundsVisible
canCreateLinkShares: root.publicLinkSharingPossible
+ canReshare: root.resharingAllowed
onCreateNewLinkShare: {
root.waitingForSharesToChange = true;