Skip to content

Commit

Permalink
viewType => type, as suggested by ATM (#743)
Browse files Browse the repository at this point in the history
  • Loading branch information
lbwexler authored Dec 5, 2024
1 parent 73b3356 commit 6b00ad9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export class ViewManagerTestModel extends HoistModel {
.filter(it => it.isDirty)
.map(it => it.name);
return [
'viewType',
'type',
'typeDisplayName',
'globalDisplayName',
'localStorageKey',
Expand All @@ -94,7 +94,7 @@ export class ViewManagerTestModel extends HoistModel {

this.configFormModel = new FormModel({
fields: [
{name: 'viewType', rules: [required], initialValue: 'testView'},
{name: 'type', rules: [required], initialValue: 'testView'},
{name: 'typeDisplayName', initialValue: 'view'},
{name: 'globalDisplayName', initialValue: 'global'},
{name: 'localStorageKey', initialValue: 'viewManagerTest'},
Expand Down Expand Up @@ -136,7 +136,7 @@ export class ViewManagerTestModel extends HoistModel {

const data = configFormModel.getData(),
{
viewType,
type,
typeDisplayName,
globalDisplayName,
localStorageKey,
Expand All @@ -154,7 +154,7 @@ export class ViewManagerTestModel extends HoistModel {
: null;

const newModel = await ViewManagerModel.createAsync({
viewType,
type,
typeDisplayName,
globalDisplayName,
manageGlobal,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ const modelConfig = hoistCmp.factory({
className: 'xh-pad tb-vm-test__model-conf',
items: [
formField({
field: 'viewType',
field: 'type',
item: textInput()
}),
formField({
Expand Down
2 changes: 1 addition & 1 deletion client-app/src/examples/portfolio/AppModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export class AppModel extends BaseAppModel {
// saved views are loaded and the desired option has been preselected before the model
// is used to construct component-level models within PortfolioModel.
this.portfolioViewManager = await ViewManagerModel.createAsync({
viewType: 'portfolioLayout',
type: 'portfolioLayout',
typeDisplayName: 'Layout',
enableDefault: true,
manageGlobal: true,
Expand Down

0 comments on commit 6b00ad9

Please sign in to comment.