mirror of
https://github.com/twofas/2fas-ios.git
synced 2024-11-22 02:10:19 +01:00
TF-1520 Block BE in Service Edit window
This commit is contained in:
parent
3001996a56
commit
088df2e345
@ -83,6 +83,8 @@ protocol ComposeServiceModuleInteracting: AnyObject {
|
||||
var actionType: ComposeServiceModuleInteractorActionType { get }
|
||||
var privateKeyError: ComposeServiceModuleInteractorPrivateKeyError? { get }
|
||||
|
||||
var isBrowserExtensionAllowed: Bool { get }
|
||||
|
||||
var isSecretCopyingBlocked: Bool { get }
|
||||
|
||||
var isDataCorrectNotifier: ((Bool) -> Void)? { get set }
|
||||
@ -220,6 +222,10 @@ extension ComposeServiceModuleInteractor: ComposeServiceModuleInteracting {
|
||||
serviceDefinitionInteractor.name(for: iconTypeID) ?? ""
|
||||
}
|
||||
|
||||
var isBrowserExtensionAllowed: Bool {
|
||||
!mdmInteractor.isBrowserExtensionBlocked
|
||||
}
|
||||
|
||||
func setServiceName(_ newServiceName: String?) {
|
||||
serviceName = newServiceName
|
||||
validate()
|
||||
|
@ -121,7 +121,9 @@ extension ComposeServicePresenter {
|
||||
]
|
||||
|
||||
if interactor.actionType == .edit {
|
||||
array.append(webExtension)
|
||||
if interactor.isBrowserExtensionAllowed {
|
||||
array.append(webExtension)
|
||||
}
|
||||
array.append(remove)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user