diff --git a/client/src/views/record/search.js b/client/src/views/record/search.js index 5b87042c58..c3dd5fb24f 100644 --- a/client/src/views/record/search.js +++ b/client/src/views/record/search.js @@ -112,6 +112,11 @@ class SearchView extends View { this.filtersLayoutName = this.options.filtersLayoutName || this.filtersLayoutName; this.primaryFiltersDisabled = this.options.primaryFiltersDisabled || this.primaryFiltersDisabled; + this.viewModeIconClassMap = { + ...this.viewModeIconClassMap, + ...this.getMetadata().get(`clientDefs.${this.scope}.viewModeIconClassMap`), + }; + /** @type {module:search-manager} */ this.searchManager = this.options.searchManager; diff --git a/schema/metadata/clientDefs.json b/schema/metadata/clientDefs.json index 81ebf13772..020e223375 100644 --- a/schema/metadata/clientDefs.json +++ b/schema/metadata/clientDefs.json @@ -80,6 +80,13 @@ }, "description": "A list view mode list." }, + "viewModeIconClassMap": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "View mode icon classes. mode => class map." + }, "saveErrorHandlers": { "description": "Save error handlers. https://docs.espocrm.com/development/frontend/save-error-handlers/", "type": "object",