Skip to content

Commit

Permalink
Remove setting import from main component template
Browse files Browse the repository at this point in the history
  • Loading branch information
saiat3 committed Aug 20, 2019
1 parent 18da149 commit 8ac8661
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue-simple-crud-generator",
"version": "1.0.2",
"version": "1.0.3",
"description": "Following package generates simple crud for vue projects",
"keywords": [
"vue",
Expand Down
4 changes: 2 additions & 2 deletions src/templates/main.component.template
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<script>
import {{serviceName}} from './{{serviceName}}';
import ErrorHelper from './../../services/errorHelper';
import Settings from './../../services/settings';
import i18nHelper from './../../services/i18nHelper';

import {library} from '@fortawesome/fontawesome-svg-core'
import {faPen} from '@fortawesome/free-solid-svg-icons'
Expand Down Expand Up @@ -58,7 +58,7 @@
});
},
initTableData() {
let masterLanguage = Settings.getMasterLanguage();
let masterLanguage = i18nHelper.getMasterLanguage();
const translatableFields = {{serviceName}}.getGeneralFields().translatableFields;

this.{{listVariableName}}.forEach((obj) => {
Expand Down

0 comments on commit 8ac8661

Please sign in to comment.