Преглед на файлове

Show Schedule add button only for logged-in premium users.

Gate the Schedule header plus button behind both Google sign-in and premium access so non-premium or signed-out users no longer see quick add.

Made-with: Cursor
huzaifahayat12 преди 1 седмица
родител
ревизия
e174210f41
променени са 1 файла, в които са добавени 4 реда и са изтрити 2 реда
  1. 4 2
      meetings_app/ViewController.swift

+ 4 - 2
meetings_app/ViewController.swift

@@ -3305,8 +3305,10 @@ private extension ViewController {
3305 3305
         titleRowSpacer.setContentCompressionResistancePriority(.defaultLow, for: .horizontal)
3306 3306
 
3307 3307
         titleRow.addArrangedSubview(titleLabel)
3308
-        titleRow.addArrangedSubview(makeSchedulePageAddButton())
3309
-        titleRow.setCustomSpacing(12, after: titleLabel)
3308
+        if googleOAuth.loadTokens() != nil && storeKitCoordinator.hasPremiumAccess {
3309
+            titleRow.addArrangedSubview(makeSchedulePageAddButton())
3310
+            titleRow.setCustomSpacing(12, after: titleLabel)
3311
+        }
3310 3312
         titleRow.addArrangedSubview(titleRowSpacer)
3311 3313
         container.addArrangedSubview(titleRow)
3312 3314