diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index d4e2136f..1c5c9653 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -53,8 +53,7 @@ TODO: LOCALIZATION - Currency / decimal INPUT handle commas test to see if working fully - needs to parse the currency, maybe I can cobble that together since the number portion stays the same?? (arabic?) - INPUT currency / decimal can a german user input a currency as 1.234,56 ? (comma is the decimal separator and decimal is the thousands separator) - - vuetify currency field: https://gist.github.com/Christilut/1143d453ea070f7e8fa345f7ada1b999 - - Not vuetify specifically but may have stealable code: https://dm4t2.github.io/vue-currency-input/ + - https://dm4t2.github.io/vue-currency-input/guide/#installation - PARSERS - Update / test own parser for currency and decimal for validation purposes - already something in there for currency I think diff --git a/ayanova/src/main.js b/ayanova/src/main.js index 2c63ee85..c620831b 100644 --- a/ayanova/src/main.js +++ b/ayanova/src/main.js @@ -11,6 +11,7 @@ import errorHandler from "./api/errorhandler"; import NProgress from "nprogress"; import "nprogress/nprogress.css"; import { DateTime } from "luxon"; +import VueCurrencyInput from "vue-currency-input"; import lodash from "./libs/lodash.min.js"; //my libs @@ -178,6 +179,8 @@ Vue.component("gz-time-picker", timeControl); Vue.component("gz-tag-picker", tagPicker); Vue.component("gz-custom-fields", customFieldsControl); +//3rd party components +Vue.use(VueCurrencyInput); ///////////////////////////////////////////////////////////// //DIRECTIVES //