AddedeLeftAndRightPanelKeysToPageModel
AddedeLeftAndRightPanelKeysToPageModel
This commit is contained in:
parent
99e3d43376
commit
335ca30c6f
@ -14,4 +14,6 @@ public protocol PageModelProtocol {
|
|||||||
var backgroundColor: Color? { get set }
|
var backgroundColor: Color? { get set }
|
||||||
var navigationBar: (NavigationItemModelProtocol & MoleculeModelProtocol)? { get set }
|
var navigationBar: (NavigationItemModelProtocol & MoleculeModelProtocol)? { get set }
|
||||||
var shouldMaskScreenWhileRecording: Bool? { get }
|
var shouldMaskScreenWhileRecording: Bool? { get }
|
||||||
|
var hideLeftPanel: Bool? { get }
|
||||||
|
var hideRightPanel: Bool? { get }
|
||||||
}
|
}
|
||||||
|
|||||||
@ -32,8 +32,8 @@ import Foundation
|
|||||||
public var tabBarIndex: Int?
|
public var tabBarIndex: Int?
|
||||||
|
|
||||||
public var shouldMaskScreenWhileRecording: Bool?
|
public var shouldMaskScreenWhileRecording: Bool?
|
||||||
public var hideLeftPanel: Bool = false
|
public var hideLeftPanel: Bool?
|
||||||
public var hideRightPanel: Bool = false
|
public var hideRightPanel: Bool?
|
||||||
|
|
||||||
public func replaceChildMolecule(with molecule: MoleculeModelProtocol) throws -> Bool {
|
public func replaceChildMolecule(with molecule: MoleculeModelProtocol) throws -> Bool {
|
||||||
return try replaceChildMolecule(at: &navigationBar, with: molecule)
|
return try replaceChildMolecule(at: &navigationBar, with: molecule)
|
||||||
|
|||||||
@ -559,7 +559,7 @@ import MVMCore
|
|||||||
|
|
||||||
public func isRightPanelAccessible() -> Bool {
|
public func isRightPanelAccessible() -> Bool {
|
||||||
// TODO: Remove when FAB is 100%.
|
// TODO: Remove when FAB is 100%.
|
||||||
if loadObject?.pageJSON?.boolForKey(KeyHideRightPanel) ?? false {
|
if let hideRightPanel = model?.hideRightPanel, hideRightPanel == true {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
return (MVMCoreUISession.sharedGlobal()?.launchAppLoadedSuccessfully ?? false) || showRightPanelForScreenBeforeLaunchApp()
|
return (MVMCoreUISession.sharedGlobal()?.launchAppLoadedSuccessfully ?? false) || showRightPanelForScreenBeforeLaunchApp()
|
||||||
|
|||||||
@ -26,7 +26,6 @@ extern NSString * const KeyEnabled;
|
|||||||
extern NSString * const KeyFieldName;
|
extern NSString * const KeyFieldName;
|
||||||
|
|
||||||
extern NSString * const KeyHideMainMenu;
|
extern NSString * const KeyHideMainMenu;
|
||||||
extern NSString * const KeyHideRightPanel;
|
|
||||||
extern NSString * const KeyProgressPercent;
|
extern NSString * const KeyProgressPercent;
|
||||||
|
|
||||||
extern NSString * const KeyPrimaryButton;
|
extern NSString * const KeyPrimaryButton;
|
||||||
|
|||||||
@ -27,7 +27,6 @@ NSString * const KeyFieldKey = @"fieldKey";
|
|||||||
NSString * const KeyRequired = @"required";
|
NSString * const KeyRequired = @"required";
|
||||||
|
|
||||||
NSString * const KeyHideMainMenu = @"hideMainMenu";
|
NSString * const KeyHideMainMenu = @"hideMainMenu";
|
||||||
NSString * const KeyHideRightPanel = @"hideRightPanel";
|
|
||||||
NSString * const KeyProgressPercent = @"progressPercent";
|
NSString * const KeyProgressPercent = @"progressPercent";
|
||||||
|
|
||||||
NSString * const KeyPrimaryButton = @"PrimaryButton";
|
NSString * const KeyPrimaryButton = @"PrimaryButton";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user