feed filter: save the changed values to the DB, go to map if no location chosen, reload if necessary

This commit is contained in:
2024-04-03 19:54:01 -06:00
parent 027825b155
commit e3696e3ac5
5 changed files with 129 additions and 24 deletions

View File

@@ -208,9 +208,9 @@ export default class DiscoverView extends Vue {
group: "alert",
type: "success",
title: "Saved",
text: "That has been saved in your preferences.",
text: "That has been saved in your preferences. You can now filter by it on your home screen feed.",
},
-1,
7000,
);
this.$router.back();
} catch (err) {
@@ -246,6 +246,7 @@ export default class DiscoverView extends Vue {
await db.open();
db.settings.update(MASTER_SETTINGS_KEY, {
searchBoxes: [],
filterFeedNearby: false,
});
this.searchBox = null;
this.localCenterLat = 0;