]> cat aescling's git repositories - mastodon.git/commitdiff
Save quick filter settings when selecting a different filter (#10296)
authorThibG <thib@sitedethib.com>
Sun, 17 Mar 2019 02:13:29 +0000 (03:13 +0100)
committerEugen Rochko <eugen@zeonfederated.com>
Sun, 17 Mar 2019 02:13:29 +0000 (03:13 +0100)
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.

app/javascript/mastodon/actions/notifications.js

index 61fef19e90bb5e8c8446ade2e922a7731234f98e..b0861fc6bf88eb013f48ded18f8bbc12ef6d8681 100644 (file)
@@ -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());
   };
 };