Skip to content

Commit

Permalink
- update SDK (fix (2) in #1297)
Browse files Browse the repository at this point in the history
- OCShare+UniversalItemListCellContentProvider: show token instead of "Link" as placeholder for unnamed links (fix (3) in #1297)
- ShareViewController:
	- show token instead of "Link" as placeholder for unnamed links (fix (3) in #1297)
	- fix layout issue for name text field (fix (1) in #1297)
  • Loading branch information
felix-schwarz committed Nov 23, 2023
1 parent 19c88e2 commit 968b834
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ extension OCShare: UniversalItemListCellContentProvider {
}
} else {
// Link shares
content.title = .text(name ?? "Link".localized)
content.title = .text(name ?? token ?? "Link".localized)

if let urlString = url?.absoluteString, urlString.count > 0 {
if let roleName = matchingRole?.localizedName {
Expand Down
4 changes: 2 additions & 2 deletions ownCloudAppShared/Client/Sharing/ShareViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,8 @@ open class ShareViewController: CollectionViewController, SearchViewControllerDe
let textField : UITextField = ThemeCSSTextField()
textField.translatesAutoresizingMaskIntoConstraints = false
textField.setContentHuggingPriority(.required, for: .vertical)
textField.setContentCompressionResistancePriority(.required, for: .horizontal)
textField.placeholder = "Link".localized
textField.setContentCompressionResistancePriority(.defaultLow, for: .horizontal)
textField.placeholder = share?.token ?? "Link".localized
textField.text = share?.name
textField.accessibilityLabel = "Name".localized

Expand Down

0 comments on commit 968b834

Please sign in to comment.