mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
add feature flag for read now button
This commit is contained in:
parent
2d4ec9d45d
commit
65640d7b04
2 changed files with 3 additions and 2 deletions
|
|
@ -10,6 +10,7 @@ public enum FeatureFlag {
|
|||
public static let showAccountDeletion = false
|
||||
public static let enableSnoozeFromShareExtension = false
|
||||
public static let enableRemindersFromShareExtension = false
|
||||
public static let enableReadNow = false
|
||||
public static let enablePushNotifications = false
|
||||
public static let enableShareButton = false
|
||||
public static let enableSnooze = false
|
||||
|
|
|
|||
|
|
@ -203,14 +203,14 @@ public struct ShareExtensionChildView: View {
|
|||
.padding(.horizontal)
|
||||
|
||||
HStack {
|
||||
if case ShareExtensionStatus.success = status {
|
||||
if case ShareExtensionStatus.success = status, FeatureFlag.enableReadNow {
|
||||
Button(
|
||||
action: { readNowButtonAction() },
|
||||
label: { Text("Read Now").frame(maxWidth: .infinity) }
|
||||
)
|
||||
.buttonStyle(RoundedRectButtonStyle())
|
||||
}
|
||||
if case ShareExtensionStatus.processing = status {
|
||||
if case ShareExtensionStatus.processing = status, FeatureFlag.enableReadNow {
|
||||
Button(action: {}, label: { ProgressView().frame(maxWidth: .infinity) })
|
||||
.buttonStyle(RoundedRectButtonStyle())
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue