Этот коммит содержится в:
shred86
2020-05-27 09:23:51 -07:00
коммит произвёл GitHub
родитель 853e955b62
Коммит c35a18d15c
2 изменённых файлов: 14 добавлений и 0 удалений

Просмотреть файл

@@ -70,6 +70,7 @@ func GenerateClientConfig(c *model.Config, diagnosticID string, license *model.L
props["EmailNotificationContentsType"] = *c.EmailSettings.EmailNotificationContentsType
props["ShowEmailAddress"] = strconv.FormatBool(*c.PrivacySettings.ShowEmailAddress)
props["ShowFullName"] = strconv.FormatBool(*c.PrivacySettings.ShowFullName)
props["EnableFileAttachments"] = strconv.FormatBool(*c.FileSettings.EnableFileAttachments)
props["EnablePublicLink"] = strconv.FormatBool(*c.FileSettings.EnablePublicLink)

Просмотреть файл

@@ -165,6 +165,19 @@ func TestGetClientConfig(t *testing.T) {
"IsDefaultMarketplace": "false",
},
},
{
"enable ShowFullName prop",
&model.Config{
PrivacySettings: model.PrivacySettings{
ShowFullName: bToP(true),
},
},
"tag1",
nil,
map[string]string{
"ShowFullName": "true",
},
},
}
for _, testCase := range testCases {