Skip to content

Commit

Permalink
Merge pull request #185 from ONLYOFFICE/feature/pdf-embed-logo
Browse files Browse the repository at this point in the history
Feature/pdf embed logo
  • Loading branch information
pavelbannov authored Feb 2, 2024
2 parents 03e33b6 + dab8106 commit 18e8b0d
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1012,8 +1012,6 @@ public class LogoConfig<T>
{
private readonly CommonLinkUtility _commonLinkUtility;

private readonly FileUtility _fileUtility;

private readonly TenantLogoHelper _tenantLogoHelper;

private Configuration<T> _configuration;
Expand All @@ -1022,10 +1020,7 @@ public string Image
{
get
{
var fillingForm = _fileUtility.CanWebRestrictedEditing(_configuration.Document.Title);

return _configuration.EditorType == EditorType.Embedded
|| fillingForm
? _commonLinkUtility.GetFullAbsolutePath(_tenantLogoHelper.GetLogo(WhiteLabelLogoType.DocsEditorEmbed).Result)
: _commonLinkUtility.GetFullAbsolutePath(_tenantLogoHelper.GetLogo(WhiteLabelLogoType.DocsEditor).Result);
}
Expand Down Expand Up @@ -1055,12 +1050,10 @@ public string Url

public LogoConfig(
CommonLinkUtility commonLinkUtility,
TenantLogoHelper tenantLogoHelper,
FileUtility fileUtility)
TenantLogoHelper tenantLogoHelper)
{
_commonLinkUtility = commonLinkUtility;
_tenantLogoHelper = tenantLogoHelper;
_fileUtility = fileUtility;
}

internal void SetConfiguration(Configuration<T> configuration)
Expand Down

0 comments on commit 18e8b0d

Please sign in to comment.