[Glitch] Save quick filter settings when selecting a different filter
Port 7477db7268f2a4c158e5f7683493a728d632f7e2 to glitch-soc
This commit is contained in:
		
							parent
							
								
									291012ec0c
								
							
						
					
					
						commit
						200cd3b5a7
					
				@ -7,6 +7,7 @@ import {
 | 
				
			|||||||
  importFetchedStatus,
 | 
					  importFetchedStatus,
 | 
				
			||||||
  importFetchedStatuses,
 | 
					  importFetchedStatuses,
 | 
				
			||||||
} from './importer';
 | 
					} from './importer';
 | 
				
			||||||
 | 
					import { saveSettings } from './settings';
 | 
				
			||||||
import { defineMessages } from 'react-intl';
 | 
					import { defineMessages } from 'react-intl';
 | 
				
			||||||
import { List as ImmutableList } from 'immutable';
 | 
					import { List as ImmutableList } from 'immutable';
 | 
				
			||||||
import { unescapeHTML } from 'flavours/glitch/util/html';
 | 
					import { unescapeHTML } from 'flavours/glitch/util/html';
 | 
				
			||||||
@ -286,5 +287,6 @@ export function setFilter (filterType) {
 | 
				
			|||||||
      value: filterType,
 | 
					      value: filterType,
 | 
				
			||||||
    });
 | 
					    });
 | 
				
			||||||
    dispatch(expandNotifications());
 | 
					    dispatch(expandNotifications());
 | 
				
			||||||
 | 
					    dispatch(saveSettings());
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user