You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: WordPress/Classes/ViewRelated/Post/PostActionSheet.swift
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -78,6 +78,10 @@ class PostActionSheet {
78
78
}
79
79
case.more:
80
80
WordPressAppDelegate.crashLogging?.logMessage("Cannot handle unexpected button for post action sheet: \(button). This is a configuration error.", level:.error)
81
+
case.copyLink:
82
+
actionSheetController.addDefaultActionWithTitle(Titles.copyLink){[weak self] _ in
83
+
self?.interactivePostViewDelegate?.copyLink(post)
84
+
}
81
85
}
82
86
}
83
87
@@ -103,5 +107,6 @@ class PostActionSheet {
103
107
staticletretry=NSLocalizedString("Retry", comment:"Retry uploading the post.")
104
108
staticletedit=NSLocalizedString("Edit", comment:"Edit the post.")
105
109
staticletshare=NSLocalizedString("Share", comment:"Share the post.")
110
+
staticletcopyLink=NSLocalizedString("Copy Link", comment:"Copy the post url and paste anywhere in phone")
Copy file name to clipboardExpand all lines: WordPress/Classes/ViewRelated/Post/PostListViewController.swift
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -676,6 +676,10 @@ class PostListViewController: AbstractPostListViewController, UIViewControllerRe
676
676
}
677
677
}
678
678
679
+
func copyLink(_ post:AbstractPost){
680
+
copyPostLink(post)
681
+
}
682
+
679
683
func trash(_ post:AbstractPost){
680
684
guardReachabilityUtils.isInternetReachable()else{
681
685
letofflineMessage=NSLocalizedString("Unable to trash posts while offline. Please try again later.", comment:"Message that appears when a user tries to trash a post while their device is offline.")
0 commit comments