TF-1520 Block BE in Service Edit window

This commit is contained in:
Zbigniew Cisiński 2024-03-06 23:00:46 +01:00
parent 3001996a56
commit 088df2e345
2 changed files with 9 additions and 1 deletions

View File

@ -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()

View File

@ -121,7 +121,9 @@ extension ComposeServicePresenter {
]
if interactor.actionType == .edit {
array.append(webExtension)
if interactor.isBrowserExtensionAllowed {
array.append(webExtension)
}
array.append(remove)
}