diff options
author | dartcafe <github@dartcafe.de> | 2020-05-26 10:33:51 +0300 |
---|---|---|
committer | dartcafe <github@dartcafe.de> | 2020-05-26 10:33:51 +0300 |
commit | 8fb1cd42d05741efea4bc821387653ddc3a71fab (patch) | |
tree | 9456377188d04a7ccb436c8b921b6601500630c7 /src/js/mixins | |
parent | 168b61a16e25321e79e6eab069069a1c9eb4fa6d (diff) |
moving duplicated code to mixin
Diffstat (limited to 'src/js/mixins')
-rw-r--r-- | src/js/mixins/dateMixins.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/js/mixins/dateMixins.js b/src/js/mixins/dateMixins.js new file mode 100644 index 00000000..7cb40472 --- /dev/null +++ b/src/js/mixins/dateMixins.js @@ -0,0 +1,14 @@ +export const dateUnits = { + data() { + return { + dateUnits: [ + { name: t('polls', 'Minute'), value: 'minute' }, + { name: t('polls', 'Hour'), value: 'hour' }, + { name: t('polls', 'Day'), value: 'day' }, + { name: t('polls', 'Week'), value: 'week' }, + { name: t('polls', 'Month'), value: 'month' }, + { name: t('polls', 'Year'), value: 'year' }, + ], + } + }, +} |