mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-24 14:05:58 +03:00
Add convenience function to enable or disable all share option fields
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
parent
422a6c7962
commit
19316f4d3a
1 changed files with 14 additions and 0 deletions
|
@ -62,4 +62,18 @@ class ShareOptionsView: NSView {
|
|||
noteForRecipientCheckbox.state = .off
|
||||
noteTextField.isHidden = true
|
||||
}
|
||||
|
||||
func setAllFields(enabled: Bool) {
|
||||
labelTextField.isEnabled = enabled
|
||||
uploadEditPermissionCheckbox.isEnabled = enabled
|
||||
hideDownloadCheckbox.isEnabled = enabled
|
||||
passwordProtectCheckbox.isEnabled = enabled
|
||||
passwordSecureField.isEnabled = enabled
|
||||
expirationDateCheckbox.isEnabled = enabled
|
||||
expirationDatePicker.isEnabled = enabled
|
||||
noteForRecipientCheckbox.isEnabled = enabled
|
||||
noteTextField.isEnabled = enabled
|
||||
saveButton.isEnabled = enabled
|
||||
deleteButton.isEnabled = enabled
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue