]> cat aescling's git repositories - mastodon.git/commitdiff
[Glitch] Save quick filter settings when selecting a different filter
authorThibG <thib@sitedethib.com>
Sun, 17 Mar 2019 02:13:29 +0000 (03:13 +0100)
committerThibaut Girka <thib@sitedethib.com>
Mon, 18 Mar 2019 17:06:26 +0000 (18:06 +0100)
Port 7477db7268f2a4c158e5f7683493a728d632f7e2 to glitch-soc

app/javascript/flavours/glitch/actions/notifications.js

index dd4f5fd445937c54a3782e57982ed8b010319d30..57fecf63d4dc4240a376cde518d85230dff6a3ba 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 'flavours/glitch/util/html';
@@ -286,5 +287,6 @@ export function setFilter (filterType) {
       value: filterType,
     });
     dispatch(expandNotifications());
+    dispatch(saveSettings());
   };
 };