Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions ios-app/UI/ProfileViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ class ProfileViewController: UIViewController {

deleteAccountButton.isHidden = true
showDeleteAccountButtonIfSignupAllowed()
showOrHideBookmark()

self.setStatusBarColor()
}
Expand All @@ -83,6 +84,15 @@ class ProfileViewController: UIViewController {
}
}

func showOrHideBookmark() {
InstituteRepository.shared.getSettings { [weak self] settings, error in
guard let settings = settings else { return }
DispatchQueue.main.async {
self?.bookmarkButtonLayout.isHidden = !settings.bookmarksEnabled
}
}
}

func getProfile() {
loading = true
activityIndicator = UIUtils.initActivityIndicator(parentView: contentStackView)
Expand Down