Skip to content

Commit

Permalink
Show same title as root
Browse files Browse the repository at this point in the history
  • Loading branch information
hzalaz committed Feb 3, 2017
1 parent d62d0c6 commit e7da027
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions Lock/Routes.swift
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,7 @@ enum Route: Equatable {
return "Reset Password".i18n(key: "com.auth0.lock.forgot.title", comment: "Forgot Password title")
case .multifactor:
return "Two Step Verification".i18n(key: "com.auth0.lock.multifactor.title", comment: "Multifactor title")
case .enterpriseActiveAuth:
return "Corporate Login".i18n(key: "com.auth0.lock.corporate.title", comment: "Corporate Login title")
case .root, .unrecoverableError:
case .root, .unrecoverableError, .enterpriseActiveAuth:
return style.hideTitle ? nil : style.title
}
}
Expand Down
2 changes: 1 addition & 1 deletion LockTests/Router/RouterSpec.swift
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ class RouterSpec: QuickSpec {
it("should show enterprise active auth screen") {
router.navigate(.enterpriseActiveAuth(connection: EnterpriseConnection(name: "testAD", domains: ["testad.com"]), domain: "testad.com"))
expect(controller.presentable as? EnterpriseActiveAuthPresenter).toNot(beNil())
expect(controller.headerView.title) == "Corporate Login"
expect(controller.headerView.title) == Style.Auth0.title
}

it("should show connection error screen") {
Expand Down

0 comments on commit e7da027

Please sign in to comment.