Skip to content

Commit

Permalink
chore: add ui flags to default config
Browse files Browse the repository at this point in the history
  • Loading branch information
eyatsenkoperpetio committed Dec 11, 2023
1 parent 552d455 commit 06bc8a2
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Core/Core/Configuration/Config/UIComponentsConfig.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ private enum Keys: String {
}

public class UIComponentsConfig: NSObject {
public var isVerticalsMenuEnabled: Bool = false
public var isVerticalsMenuEnabled: Bool
public var courseTopTabBarEnabled: Bool

init(dictionary: [String: Any]) {
Expand Down
6 changes: 6 additions & 0 deletions default_config/dev/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,9 @@ API_HOST_URL: 'http://localhost:8000'
ENVIRONMENT_DISPLAY_NAME: 'Localhost'
FEEDBACK_EMAIL_ADDRESS: '[email protected]'
OAUTH_CLIENT_ID: ''

UI_COMPONENTS:
COURSE_BANNER_ENABLED: false
COURSE_TOP_TAB_BAR_ENABLED: false
COURSE_UNIT_PROGRESS_ENABLED: false
COURSE_NESTED_LIST_ENABLED: false
6 changes: 6 additions & 0 deletions default_config/prod/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,9 @@ API_HOST_URL: 'http://localhost:8000'
ENVIRONMENT_DISPLAY_NAME: 'Localhost'
FEEDBACK_EMAIL_ADDRESS: '[email protected]'
OAUTH_CLIENT_ID: ''

UI_COMPONENTS:
COURSE_BANNER_ENABLED: false
COURSE_TOP_TAB_BAR_ENABLED: false
COURSE_UNIT_PROGRESS_ENABLED: false
COURSE_NESTED_LIST_ENABLED: false
6 changes: 6 additions & 0 deletions default_config/stage/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,9 @@ API_HOST_URL: 'http://localhost:8000'
ENVIRONMENT_DISPLAY_NAME: 'Localhost'
FEEDBACK_EMAIL_ADDRESS: '[email protected]'
OAUTH_CLIENT_ID: ''

UI_COMPONENTS:
COURSE_BANNER_ENABLED: false
COURSE_TOP_TAB_BAR_ENABLED: false
COURSE_UNIT_PROGRESS_ENABLED: false
COURSE_NESTED_LIST_ENABLED: false

0 comments on commit 06bc8a2

Please sign in to comment.