Remove notifications bundle and remove settings from profile bundle

This commit is contained in:
Benedikt Kulmann
2020-05-22 09:52:20 +02:00
parent 93325178f8
commit 868e95e2bf
2 changed files with 0 additions and 96 deletions

View File

@@ -79,7 +79,6 @@ func RegisterSettingsBundles(l *olog.Logger) {
requests := []settings.SaveSettingsBundleRequest{
generateSettingsBundleProfileRequest(),
generateSettingsBundleNotificationsRequest(),
}
for i := range requests {

View File

@@ -11,39 +11,6 @@ func generateSettingsBundleProfileRequest() settings.SaveSettingsBundleRequest {
},
DisplayName: "Profile",
Settings: []*settings.Setting{
{
SettingKey: "firstname",
DisplayName: "Firstname",
Description: "Input for firstname",
Value: &settings.Setting_StringValue{
StringValue: &settings.StringSetting{
Placeholder: "Set firstname",
},
},
},
{
SettingKey: "lastname",
DisplayName: "Lastname",
Description: "Input for lastname",
Value: &settings.Setting_StringValue{
StringValue: &settings.StringSetting{
Placeholder: "Set lastname",
},
},
},
{
SettingKey: "age",
DisplayName: "Age",
Description: "Input for age",
Value: &settings.Setting_IntValue{
IntValue: &settings.IntSetting{
Placeholder: "Set age",
Min: 16,
Max: 200,
Step: 2,
},
},
},
{
SettingKey: "timezone",
DisplayName: "Timezone",
@@ -142,65 +109,3 @@ func generateSettingsBundleProfileRequest() settings.SaveSettingsBundleRequest {
},
}
}
func generateSettingsBundleNotificationsRequest() settings.SaveSettingsBundleRequest {
return settings.SaveSettingsBundleRequest{
SettingsBundle: &settings.SettingsBundle{
Identifier: &settings.Identifier{
Extension: "ocis-accounts",
BundleKey: "notifications",
},
DisplayName: "Notifications",
Settings: []*settings.Setting{
{
SettingKey: "email",
DisplayName: "Email",
Value: &settings.Setting_BoolValue{
BoolValue: &settings.BoolSetting{
Default: false,
Label: "Send via email",
},
},
},
{
SettingKey: "stream",
DisplayName: "Stream",
Value: &settings.Setting_BoolValue{
BoolValue: &settings.BoolSetting{
Default: true,
Label: "Show in stream",
},
},
},
{
SettingKey: "transport",
DisplayName: "Transport",
Value: &settings.Setting_MultiChoiceValue{
MultiChoiceValue: &settings.MultiChoiceListSetting{
Options: []*settings.ListOption{
{
Value: &settings.ListOptionValue{
Option: &settings.ListOptionValue_StringValue{
StringValue: "email",
},
},
DisplayValue: "Send via email",
},
{
Value: &settings.ListOptionValue{
Option: &settings.ListOptionValue_StringValue{
StringValue: "stream",
},
},
DisplayValue: "Show in stream",
Default: true,
},
},
},
},
},
},
},
}
}