Merge branch 'bugfix/panel_hiding' into 'develop'
change mdn calculation See merge request BPHV_MIPS/mvm_core_ui!772
This commit is contained in:
commit
059a5abd01
@ -54,8 +54,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
__block MVMCoreAlertObject *alert = [[MVMCoreAlertObject alloc] init];
|
__block MVMCoreAlertObject *alert = [[MVMCoreAlertObject alloc] init];
|
||||||
alert.title = [responseInfo stringForKey:KeyErrorHeading];
|
alert.title = [responseInfo string:KeyErrorHeading] ?: [MVMCoreGetterUtility hardcodedStringWithKey:HardcodedErrorTitle];
|
||||||
alert.message = [responseInfo stringForKey:KeyUserMessage];
|
alert.message = [responseInfo string:KeyUserMessage] ?: [MVMCoreGetterUtility hardcodedStringWithKey:HardcodedErrorUnableToProcess];
|
||||||
|
|
||||||
NSString *messageStyle = [responseInfo stringForKey:KeyMessageStyle];
|
NSString *messageStyle = [responseInfo stringForKey:KeyMessageStyle];
|
||||||
if ([ValueTypeFieldErrors isEqualToString:[responseInfo string:KeyType]]) {
|
if ([ValueTypeFieldErrors isEqualToString:[responseInfo string:KeyType]]) {
|
||||||
@ -151,9 +151,9 @@
|
|||||||
+ (nullable instancetype)alertObjectWithPage:(nullable NSDictionary *)page isGreedy:(BOOL)isGreedy additionalData:(nullable NSDictionary *)additionalData delegateObject:(nullable DelegateObject *)delegateObject error:(MVMCoreErrorObject *_Nullable *_Nullable)error {
|
+ (nullable instancetype)alertObjectWithPage:(nullable NSDictionary *)page isGreedy:(BOOL)isGreedy additionalData:(nullable NSDictionary *)additionalData delegateObject:(nullable DelegateObject *)delegateObject error:(MVMCoreErrorObject *_Nullable *_Nullable)error {
|
||||||
|
|
||||||
MVMCoreAlertObject *alert = [[MVMCoreAlertObject alloc] init];
|
MVMCoreAlertObject *alert = [[MVMCoreAlertObject alloc] init];
|
||||||
alert.title = [page stringForKey:KeyTitle];
|
alert.title = [page string:KeyTitle] ?: [MVMCoreGetterUtility hardcodedStringWithKey:HardcodedErrorTitle];
|
||||||
alert.pageJson = page;
|
alert.pageJson = page;
|
||||||
alert.message = [page stringForKey:KeyMessage];
|
alert.message = [page string:KeyMessage] ?: [MVMCoreGetterUtility hardcodedStringWithKey:HardcodedErrorUnableToProcess];
|
||||||
alert.isGreedy = isGreedy;
|
alert.isGreedy = isGreedy;
|
||||||
alert.type = MFAlertTypePopup;
|
alert.type = MFAlertTypePopup;
|
||||||
alert.alertStyle = UIAlertControllerStyleAlert;
|
alert.alertStyle = UIAlertControllerStyleAlert;
|
||||||
@ -217,9 +217,8 @@
|
|||||||
+ (nullable instancetype)alertObjectForPageType:(nullable NSString *)pageType responseInfo:(nullable NSDictionary *)responseInfo additionalData:(nullable NSDictionary *)additionalData actionDelegate:(nullable NSObject <MVMCoreLoadDelegateProtocol,MVMCorePresentationDelegateProtocol,MVMCoreActionDelegateProtocol>*)actionDelegate {
|
+ (nullable instancetype)alertObjectForPageType:(nullable NSString *)pageType responseInfo:(nullable NSDictionary *)responseInfo additionalData:(nullable NSDictionary *)additionalData actionDelegate:(nullable NSObject <MVMCoreLoadDelegateProtocol,MVMCorePresentationDelegateProtocol,MVMCoreActionDelegateProtocol>*)actionDelegate {
|
||||||
|
|
||||||
__block MVMCoreAlertObject *alert = [[MVMCoreAlertObject alloc] init];
|
__block MVMCoreAlertObject *alert = [[MVMCoreAlertObject alloc] init];
|
||||||
alert.title = [responseInfo stringForKey:KeyErrorHeading];
|
alert.title = [responseInfo string:KeyErrorHeading] ?: [MVMCoreGetterUtility hardcodedStringWithKey:HardcodedErrorTitle];
|
||||||
alert.message = [responseInfo stringForKey:KeyUserMessage];
|
alert.message = [responseInfo string:KeyUserMessage] ?: [MVMCoreGetterUtility hardcodedStringWithKey:HardcodedErrorUnableToProcess];
|
||||||
|
|
||||||
NSString *messageStyle = [responseInfo stringForKey:KeyMessageStyle];
|
NSString *messageStyle = [responseInfo stringForKey:KeyMessageStyle];
|
||||||
if ([ValueTypeFieldErrors isEqualToString:[responseInfo string:KeyType]]) {
|
if ([ValueTypeFieldErrors isEqualToString:[responseInfo string:KeyType]]) {
|
||||||
|
|
||||||
@ -279,9 +278,9 @@
|
|||||||
+ (nullable instancetype)alertObjectWithPage:(nullable NSDictionary *)page isGreedy:(BOOL)isGreedy additionalData:(nullable NSDictionary *)additionalData delegate:(nullable NSObject <MVMCoreLoadDelegateProtocol,MVMCorePresentationDelegateProtocol,MVMCoreActionDelegateProtocol>*)delegate error:(MVMCoreErrorObject *_Nullable *_Nullable)error {
|
+ (nullable instancetype)alertObjectWithPage:(nullable NSDictionary *)page isGreedy:(BOOL)isGreedy additionalData:(nullable NSDictionary *)additionalData delegate:(nullable NSObject <MVMCoreLoadDelegateProtocol,MVMCorePresentationDelegateProtocol,MVMCoreActionDelegateProtocol>*)delegate error:(MVMCoreErrorObject *_Nullable *_Nullable)error {
|
||||||
|
|
||||||
MVMCoreAlertObject *alert = [[MVMCoreAlertObject alloc] init];
|
MVMCoreAlertObject *alert = [[MVMCoreAlertObject alloc] init];
|
||||||
alert.title = [page stringForKey:KeyTitle];
|
alert.title = [page string:KeyTitle] ?: [MVMCoreGetterUtility hardcodedStringWithKey:HardcodedErrorTitle];
|
||||||
alert.pageJson = page;
|
alert.pageJson = page;
|
||||||
alert.message = [page stringForKey:KeyMessage];
|
alert.message = [page string:KeyMessage] ?: [MVMCoreGetterUtility hardcodedStringWithKey:HardcodedErrorUnableToProcess];
|
||||||
alert.isGreedy = isGreedy;
|
alert.isGreedy = isGreedy;
|
||||||
alert.type = MFAlertTypePopup;
|
alert.type = MFAlertTypePopup;
|
||||||
alert.alertStyle = UIAlertControllerStyleAlert;
|
alert.alertStyle = UIAlertControllerStyleAlert;
|
||||||
|
|||||||
@ -351,7 +351,6 @@ import UIKit
|
|||||||
open func pageShown() {
|
open func pageShown() {
|
||||||
// Update split view properties if this is the current detail controller.
|
// Update split view properties if this is the current detail controller.
|
||||||
if self == MVMCoreUISplitViewController.main()?.getCurrentDetailViewController() {
|
if self == MVMCoreUISplitViewController.main()?.getCurrentDetailViewController() {
|
||||||
MVMCoreUISplitViewController.main()?.setupPanels()
|
|
||||||
MVMCoreUISplitViewController.main()?.setBottomProgressBarProgress(bottomProgress() ?? 0)
|
MVMCoreUISplitViewController.main()?.setBottomProgressBarProgress(bottomProgress() ?? 0)
|
||||||
updateTabBar()
|
updateTabBar()
|
||||||
}
|
}
|
||||||
|
|||||||
@ -135,6 +135,7 @@ extension MVMCoreUISplitViewController: MVMCoreViewManagerProtocol {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public func displayedViewController(_ viewController: UIViewController) {
|
public func displayedViewController(_ viewController: UIViewController) {
|
||||||
|
setupPanels()
|
||||||
updateNavigationBarFor(viewController: viewController)
|
updateNavigationBarFor(viewController: viewController)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user