Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Index view for Templates & Parts: use grid layout as default #60069

Merged
merged 3 commits into from
Apr 4, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Set grid as default
  • Loading branch information
oandregal committed Apr 4, 2024
commit 97f8d6cf6bcb18059ad82109d39eae56b5931c55
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ const defaultConfigPerViewType = {
};

const DEFAULT_VIEW = {
type: LAYOUT_TABLE,
type: LAYOUT_GRID,
search: '',
page: 1,
perPage: 20,
Expand All @@ -87,7 +87,7 @@ const DEFAULT_VIEW = {
// All fields are visible by default, so it's
// better to keep track of the hidden ones.
hiddenFields: [ 'preview' ],
layout: defaultConfigPerViewType[ LAYOUT_TABLE ],
layout: defaultConfigPerViewType[ LAYOUT_GRID ],
filters: [],
};

Expand Down
Loading