Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,14 @@ final class SiteMediaAddMediaMenuController: NSObject, PHPickerViewControllerDel
}
if blog.isHostedAtWPcom, blog.isQuotaAvailable {
children += [
UIAction(title: Strings.viewUsage, subtitle: blog.quotaUsageShortDescription, image: UIImage(systemName: "opticaldiscdrive"), handler: { _ in
UIAction(
title: Strings.viewUsage,
subtitle: blog.quotaUsageShortDescription,
image: UIImage(systemName: "opticaldiscdrive")
) { [weak self, weak viewController] _ in
guard let self, let viewController else { return }
self.showQuotaView(from: viewController)
})
}
]
}
return UIMenu(options: [.displayInline], children: children)
Expand Down