Prechádzať zdrojové kódy

Open premium sheet from sidebar Manage Subscription

Route the sidebar Pro card CTA through presentPremiumPlansSheet after
refreshing entitlements, instead of opening the App Store subscriptions
URL. Update the Pro-state subtitle to reference Premium so copy matches
the action.

Co-authored-by: Cursor <cursoragent@cursor.com>
AhtashamShahzad1 2 mesiacov pred
rodič
commit
1960deff34
1 zmenil súbory, kde vykonal 2 pridanie a 7 odobranie
  1. 2 7
      App for Indeed/Views/DashboardView.swift

+ 2 - 7
App for Indeed/Views/DashboardView.swift

@@ -375,7 +375,7 @@ final class DashboardView: NSView, NSTextFieldDelegate {
         let descriptionWidth: CGFloat = 158
         if active {
             headline.stringValue = "You're on Pro"
-            upgradeDescription.stringValue = "Manage billing, renewals, and plans in the App Store."
+            upgradeDescription.stringValue = "Manage billing, renewals, and plans in Premium."
             upgradeDescription.preferredMaxLayoutWidth = descriptionWidth
             upgradeButton.title = "Manage Subscription"
         } else {
@@ -2145,12 +2145,7 @@ final class DashboardView: NSView, NSTextFieldDelegate {
         Task { @MainActor in
             await SubscriptionStore.shared.refreshEntitlements(deep: true)
             applyProSubscriptionToSidebar()
-            guard SubscriptionStore.shared.isProActive else {
-                presentPremiumPlansSheet()
-                return
-            }
-            guard let url = URL(string: "https://apps.apple.com/account/subscriptions") else { return }
-            NSWorkspace.shared.open(url)
+            presentPremiumPlansSheet()
         }
     }