diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2016-11-06 12:02:39 +0100 |
---|---|---|
committer | Jeremy Benoist <jeremy.benoist@gmail.com> | 2016-11-16 23:07:34 +0100 |
commit | a42f38d9fb7906b785285fab2a09f8c2b9efe996 (patch) | |
tree | 8f85793b17497827d063527a339aea42d81ed483 /src/Wallabag/CoreBundle/Form/Type/ConfigType.php | |
parent | e042a5d78fc7676eb399f61d199e8ec0045fbd1f (diff) | |
download | wallabag-a42f38d9fb7906b785285fab2a09f8c2b9efe996.tar.gz wallabag-a42f38d9fb7906b785285fab2a09f8c2b9efe996.tar.zst wallabag-a42f38d9fb7906b785285fab2a09f8c2b9efe996.zip |
Added a configuration to define the redirection after archiving an entry
Fix #496
Diffstat (limited to 'src/Wallabag/CoreBundle/Form/Type/ConfigType.php')
-rw-r--r-- | src/Wallabag/CoreBundle/Form/Type/ConfigType.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Wallabag/CoreBundle/Form/Type/ConfigType.php b/src/Wallabag/CoreBundle/Form/Type/ConfigType.php index 0bac2874..3b1a8026 100644 --- a/src/Wallabag/CoreBundle/Form/Type/ConfigType.php +++ b/src/Wallabag/CoreBundle/Form/Type/ConfigType.php | |||
@@ -48,6 +48,13 @@ class ConfigType extends AbstractType | |||
48 | 'config.form_settings.reading_speed.400_word' => '2', | 48 | 'config.form_settings.reading_speed.400_word' => '2', |
49 | ], | 49 | ], |
50 | ]) | 50 | ]) |
51 | ->add('action_mark_as_read', ChoiceType::class, [ | ||
52 | 'label' => 'config.form_settings.action_mark_as_read.label', | ||
53 | 'choices' => [ | ||
54 | 'config.form_settings.action_mark_as_read.redirect_homepage' => '0', | ||
55 | 'config.form_settings.action_mark_as_read.redirect_current_page' => '1', | ||
56 | ], | ||
57 | ]) | ||
51 | ->add('language', ChoiceType::class, [ | 58 | ->add('language', ChoiceType::class, [ |
52 | 'choices' => array_flip($this->languages), | 59 | 'choices' => array_flip($this->languages), |
53 | 'label' => 'config.form_settings.language_label', | 60 | 'label' => 'config.form_settings.language_label', |