Add the persistence of the columns setup

Add the persistence of the columns' visibility and ordering.
This commit is contained in:
Alezia Kurdis 2020-11-09 00:34:07 -05:00 committed by GitHub
parent c573242043
commit f3dea2fbad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -371,6 +371,14 @@ EntityListTool = function(shouldUseEditTabletApp) {
SelectionManager.teleportToEntity();
} else if (data.type === 'moveEntitySelectionToAvatar') {
SelectionManager.moveEntitiesSelectionToAvatar();
} else if (data.type === 'loadColumnsConfigSetting') {
var columnsData = Settings.getValue(SETTING_EDIT_PREFIX + SETTING_EDITOR_COLUMNS_SETUP, "NO_DATA");
emitJSONScriptEvent({
"type": "loadedColumnsSetup",
"columnsData": columnsData
});
} else if (data.type === 'saveColumnsConfigSetting') {
Settings.setValue(SETTING_EDIT_PREFIX + SETTING_EDITOR_COLUMNS_SETUP, data.columnsData);
}
};