* FEATURE: Add ignored user list to the User's preference page ## Why? Part of: https://meta.discourse.org/t/ability-to-ignore-a-user/110254 We want to add list of Ignored users under or along with the muted users preferences section. This way Users can find and update their list of ignored users. ## UI  ## Open questions Two of many options to represent a list of ignored users is that we can: 1. We can represent the ignored user list as a table with the ability to `un-ignore` but NOT to add new ignored users. 2. We can keep it functioning as the `muted user list` where you can `un-ignore` or `ignore` users.
17 lines
492 B
JavaScript
17 lines
492 B
JavaScript
import PreferencesTabController from "discourse/mixins/preferences-tab-controller";
|
|
import { popupAjaxError } from "discourse/lib/ajax-error";
|
|
|
|
export default Ember.Controller.extend(PreferencesTabController, {
|
|
saveAttrNames: ["muted_usernames", "ignored_usernames"],
|
|
|
|
actions: {
|
|
save() {
|
|
this.set("saved", false);
|
|
return this.get("model")
|
|
.save(this.get("saveAttrNames"))
|
|
.then(() => this.set("saved", true))
|
|
.catch(popupAjaxError);
|
|
}
|
|
}
|
|
});
|