Skip to content

Commit

Permalink
✨ feat: add "control-label" class and change naming convention for fo…
Browse files Browse the repository at this point in the history
…rm's name
  • Loading branch information
dwiyatci committed Feb 8, 2019
1 parent 26501c1 commit e11aa65
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion generators/plugin/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ function createWidgetComponentName(widgetName) {
}

function createWidgetConfigFormName(widgetName) {
return `${createCamelCasedWidgetName(widgetName)}WidgetConfigForm`;
return `form${_.upperFirst(createCamelCasedWidgetName(widgetName))}WidgetConfig`;
}

function createWidgetConfigComponentName(widgetName) {
Expand Down
2 changes: 1 addition & 1 deletion generators/plugin/templates/widget/widget-config.html.ejs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<ng-form class="<%= widgetConfigCssClassName %>" name="<%= widgetConfigFormName %>">
<div class="form-group">
<label translate>A widget config item</label>
<label class="control-label" translate>A widget config item</label>
<input class="form-control" name="aWidgetConfigItem" ng-model="vm.config.aWidgetConfigItem" />
<c8y-error-feedback field="<%= widgetConfigFormName %>.aWidgetConfigItem"></c8y-error-feedback>
</div>
Expand Down

0 comments on commit e11aa65

Please sign in to comment.