Skip to content

Commit

Permalink
Update attributes prop (#720)
Browse files Browse the repository at this point in the history
  • Loading branch information
s-andrey authored Aug 14, 2020
1 parent 82fdcec commit e6787e3
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 9 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,14 @@ All notable changes to this project will be documented in this file.

## [Unreleased]

## [0.15.0-beta.1]
### Fixed
* Fix user access table.
* Fix attributes property.

## [0.14.3]
### Added
* Clear mofule settings button.
* Clear module settings button.

## [0.14.2]
### Fixed
Expand Down
1 change: 1 addition & 0 deletions addon/locales/en/components/fd-attribute-table.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export default {
'caption-placeholder': 'Enter caption',
'type': 'Type',
'type-placeholder': 'Enter type',
'not-null': 'Not null',
'description': 'Description',
'description-placeholder': 'Enter description',
'create-btn': 'Create attribute',
Expand Down
1 change: 1 addition & 0 deletions addon/locales/ru/components/fd-attribute-table.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export default {
'type-placeholder': 'Введите тип',
'description': 'Описание',
'description-placeholder': 'Введите описание',
'not-null': 'Не пустое',
'create-btn': 'Создать атрибут',
'delete-btn': 'Удалить выбранные',
},
Expand Down
12 changes: 11 additions & 1 deletion addon/mixins/fd-editing-panels/fd-update-attribute-value.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,21 @@ export default Mixin.create({
columnProperty: 'type',
attrPlaceholder: 'components.fd-attribute-table.attribute.type-placeholder',
},
{
columnCaption: 'components.fd-attribute-table.attribute.not-null',
columnProperty: 'notNull',
isCheckBox: true,
},
{
columnCaption: 'components.fd-attribute-table.attribute.default-value',
columnProperty: 'defaultValue',
attrPlaceholder: 'components.fd-attribute-table.attribute.default-value-placeholder',
},
{
columnCaption: 'components.fd-attribute-table.attribute.description',
columnProperty: 'description',
attrPlaceholder: 'components.fd-attribute-table.attribute.description-placeholder',
},
}
],

/**
Expand Down
19 changes: 13 additions & 6 deletions addon/templates/components/fd-attribute-table.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,19 @@
readonly=(or readonly tableTextBoxReadonly)
}}
{{else}}
{{flexberry-textbox
value=(mut (get value tableView.columnProperty))
class='fluid input'
placeholder=(t tableView.attrPlaceholder)
readonly=(or readonly tableTextBoxReadonly)
}}
{{#if tableView.isCheckBox}}
{{flexberry-checkbox
readonly=(or readonly tableTextBoxReadonly)
value=(mut (get value tableView.columnProperty))
}}
{{else}}
{{flexberry-textbox
value=(mut (get value tableView.columnProperty))
class='fluid input'
placeholder=(t tableView.attrPlaceholder)
readonly=(or readonly tableTextBoxReadonly)
}}
{{/if}}
{{/if}}
</div>
{{/each}}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ember-flexberry-designer",
"version": "0.14.3",
"version": "0.15.0-beta.1",
"description": "CASE addon for ember-flexberry applications",
"keywords": [
"ember-addon",
Expand Down

0 comments on commit e6787e3

Please sign in to comment.