mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-24 13:58:12 -05:00
Remove notifications bundle and remove settings from profile bundle
This commit is contained in:
@@ -79,7 +79,6 @@ func RegisterSettingsBundles(l *olog.Logger) {
|
||||
|
||||
requests := []settings.SaveSettingsBundleRequest{
|
||||
generateSettingsBundleProfileRequest(),
|
||||
generateSettingsBundleNotificationsRequest(),
|
||||
}
|
||||
|
||||
for i := range requests {
|
||||
|
||||
@@ -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,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user