updated TagPanel

This commit is contained in:
RinkiyaKeDad 2020-10-10 18:00:06 +05:30
parent 0c6ac113f4
commit 4f8b0afc41
19 changed files with 82 additions and 82 deletions

View file

@ -46,7 +46,7 @@ function commonPrefix(a, b) {
return "";
}
/**
* A class for storing application state for ordering tags in the TagPanel.
* A class for storing application state for ordering tags in the GroupFilterPanel.
*/
class CustomRoomTagStore extends EventEmitter {
constructor() {

View file

@ -33,7 +33,7 @@ const INITIAL_STATE = {
};
/**
* A class for storing application state for ordering tags in the TagPanel.
* A class for storing application state for ordering tags in the GroupFilterPanel.
*/
class TagOrderStore extends Store {
constructor() {
@ -41,7 +41,7 @@ class TagOrderStore extends Store {
// Initialise state
this._state = Object.assign({}, INITIAL_STATE);
SettingsStore.monitorSetting("TagPanel.enableTagPanel", null);
SettingsStore.monitorSetting("GroupFilterPanel.enableGroupFilterPanel", null);
}
_setState(newState) {
@ -190,7 +190,7 @@ class TagOrderStore extends Store {
break;
}
case 'setting_updated':
if (payload.settingName === 'TagPanel.enableTagPanel' && !payload.newValue) {
if (payload.settingName === 'GroupFilterPanel.enableGroupFilterPanel' && !payload.newValue) {
this._setState({
selectedTags: [],
});