mirror of
https://github.com/nocodb/nocodb.git
synced 2026-05-02 03:56:58 +00:00
feat: refactor view states and redundant api calls
This commit is contained in:
@@ -63,3 +63,19 @@ export const defaultRowColorInfo: RowColoringInfo = {
|
||||
color: null,
|
||||
is_set_as_background: null,
|
||||
}
|
||||
|
||||
const getDefaultViewMetas = (viewType: ViewTypes) => {
|
||||
switch (viewType) {
|
||||
case ViewTypes.FORM:
|
||||
return {
|
||||
submit_another_form: false,
|
||||
show_blank_form: false,
|
||||
meta: {
|
||||
hide_branding: false,
|
||||
background_color: '#F9F9FA',
|
||||
hide_banner: false,
|
||||
},
|
||||
}
|
||||
}
|
||||
return {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user