|
@@ -258,7 +258,7 @@ public class FourthTabViewController: UIViewController, UITableViewDelegate, UIT
|
|
|
|
|
|
Item.menus["Config"] = [
|
|
Item.menus["Config"] = [
|
|
Item(icon: UIImage(systemName: "iphone"), title: "Create Your Own App".localized()),
|
|
Item(icon: UIImage(systemName: "iphone"), title: "Create Your Own App".localized()),
|
|
-// Item(icon: UIImage(systemName: "gearshape.circle"), title: "Configure Floating Button".localized())
|
|
|
|
|
|
+ Item(icon: UIImage(systemName: "gearshape.circle"), title: "Configure Floating Button".localized())
|
|
]
|
|
]
|
|
if !isChangeProfile || Utils.getEnableMobileBuilder() != "1" {
|
|
if !isChangeProfile || Utils.getEnableMobileBuilder() != "1" {
|
|
if Item.menus["Config"]!.count > 1 {
|
|
if Item.menus["Config"]!.count > 1 {
|
|
@@ -267,13 +267,13 @@ public class FourthTabViewController: UIViewController, UITableViewDelegate, UIT
|
|
Item.menus["Config"]!.removeAll()
|
|
Item.menus["Config"]!.removeAll()
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-// if !Nexilis.showButtonFB {
|
|
|
|
-// if Item.menus["Config"]!.count > 1 {
|
|
|
|
-// Item.menus["Config"]!.remove(at: 1)
|
|
|
|
-// } else {
|
|
|
|
-// Item.menus["Config"]!.removeAll()
|
|
|
|
-// }
|
|
|
|
-// }
|
|
|
|
|
|
+ if !Nexilis.showButtonFB || !Nexilis.checkingAccess(key: "can_config_fb") {
|
|
|
|
+ if Item.menus["Config"]!.count > 1 {
|
|
|
|
+ Item.menus["Config"]!.remove(at: 1)
|
|
|
|
+ } else {
|
|
|
|
+ Item.menus["Config"]!.removeAll()
|
|
|
|
+ }
|
|
|
|
+ }
|
|
if Utils.getIsLoadThemeFromOther() {
|
|
if Utils.getIsLoadThemeFromOther() {
|
|
Item.menus["Config"]?.insert(Item(icon: UIImage(systemName: "iphone"), title: "Back to Company App".localized()), at: 1)
|
|
Item.menus["Config"]?.insert(Item(icon: UIImage(systemName: "iphone"), title: "Back to Company App".localized()), at: 1)
|
|
}
|
|
}
|