about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2019-03-17 03:13:29 +0100
committerEugen Rochko <eugen@zeonfederated.com>2019-03-17 03:13:29 +0100
commit7477db7268f2a4c158e5f7683493a728d632f7e2 (patch)
tree2e85484e68fffc941ffde4490bbd69d8bf945c8e /app
parent97e5f739f785948f8fec0c4e555ef07da0baff67 (diff)
Save quick filter settings when selecting a different filter (#10296)
The active filter is stored in the web app's settings, but no save
is explicitly triggered, meaning that it is only saved when a different
setting is changed.
Diffstat (limited to 'app')
-rw-r--r--app/javascript/mastodon/actions/notifications.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/javascript/mastodon/actions/notifications.js b/app/javascript/mastodon/actions/notifications.js
index 61fef19e9..b0861fc6b 100644
--- a/app/javascript/mastodon/actions/notifications.js
+++ b/app/javascript/mastodon/actions/notifications.js
@@ -7,6 +7,7 @@ import {
   importFetchedStatus,
   importFetchedStatuses,
 } from './importer';
+import { saveSettings } from './settings';
 import { defineMessages } from 'react-intl';
 import { List as ImmutableList } from 'immutable';
 import { unescapeHTML } from '../utils/html';
@@ -187,5 +188,6 @@ export function setFilter (filterType) {
       value: filterType,
     });
     dispatch(expandNotifications());
+    dispatch(saveSettings());
   };
 };