Skip to content

Commit

Permalink
fix editor
Browse files Browse the repository at this point in the history
  • Loading branch information
nhathoang989 committed Sep 14, 2023
1 parent bf307ce commit db5a4fd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 3 additions & 0 deletions src/app/app-shared/components/mix-column-editor/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@
ctrl.previousId = null;
ctrl.options = [];
ctrl.$onInit = async function () {
ctrl.editor = ctrl.column.columnConfigurations.editor
? ctrl.column.columnConfigurations.editor.toLowerCase()
: ctrl.column.dataType.toLowerCase();
if (!ctrl.createUrl && ctrl.model && ctrl.column.referenceId) {
ctrl.buildCreateUrl();
}
Expand Down
5 changes: 2 additions & 3 deletions src/app/app-shared/components/mix-column-editor/view.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,11 @@
<h6 class="control-label m-0 text-primary" ng-bind="$ctrl.translate($ctrl.column.displayName)"></h6>
<div>
<small class="text-muted">
{{$ctrl.translate($ctrl.column.systemName)}}: {{$ctrl.translate($ctrl.column.dataType)}}
{{$ctrl.translate($ctrl.column.systemName)}}: {{$ctrl.translate($ctrl.editor)}}
</small>
</div>
</div>
{{$ctrl.column.columnConfigurations.editor}}
<div ng-switch="$ctrl.column.columnConfigurations.editor.toLowerCase()" class="col-10" ng-if="$ctrl.isInit">
<div ng-switch="$ctrl.editor" class="col-10" ng-if="$ctrl.editor">
<div class="text-muted" ng-switch-default>
<!--text-->
<input class="form-control {{$ctrl.inputClass}}" type="text"
Expand Down

0 comments on commit db5a4fd

Please sign in to comment.