|
15 | 15 | }
|
16 | 16 |
|
17 | 17 | var Drawer = countlyVue.views.create({
|
| 18 | + mixins: [countlyVue.mixins.commonFormatters], |
18 | 19 | template: CV.T("/star-rating/templates/drawer.html"),
|
19 | 20 | props: {
|
20 | 21 | settings: Object,
|
21 | 22 | controls: Object
|
22 | 23 | },
|
23 |
| - mixins: [], |
24 | 24 | data: function() {
|
25 | 25 | return {
|
26 | 26 | imageSource: '',
|
|
182 | 182 |
|
183 | 183 | // these table components should be 3 different components
|
184 | 184 | var CommentsTable = countlyVue.views.create({
|
| 185 | + mixins: [countlyVue.mixins.commonFormatters], |
185 | 186 | template: CV.T("/star-rating/templates/comments-table.html"),
|
186 | 187 | props: {
|
187 | 188 | comments: Array,
|
|
284 | 285 | var WidgetsTable = countlyVue.views.create({
|
285 | 286 | template: CV.T("/star-rating/templates/widgets-table.html"),
|
286 | 287 | mixins: [
|
287 |
| - countlyVue.mixins.auth(FEATURE_NAME) |
| 288 | + countlyVue.mixins.auth(FEATURE_NAME), |
| 289 | + countlyVue.mixins.commonFormatters |
288 | 290 | ],
|
289 | 291 | props: {
|
290 | 292 | rows: {
|
|
821 | 823 | },
|
822 | 824 | mixins: [
|
823 | 825 | countlyVue.mixins.hasDrawers("widget"),
|
824 |
| - countlyVue.mixins.auth(FEATURE_NAME) |
| 826 | + countlyVue.mixins.auth(FEATURE_NAME), |
| 827 | + countlyVue.mixins.commonFormatters |
825 | 828 | ],
|
826 | 829 | data: function() {
|
827 | 830 | return {
|
|
1083 | 1086 | starRatingPlugin.requestSingleWidget(this.$route.params.id, function(widget) {
|
1084 | 1087 | self.widget = widget;
|
1085 | 1088 | self.widget.popup_header_text = replaceEscapes(self.widget.popup_header_text);
|
1086 |
| - self.widget.created_at = countlyCommon.formatTimeAgo(self.widget.created_at); |
| 1089 | + self.widget.created_at = countlyCommon.formatTimeAgoText(self.widget.created_at).text; |
1087 | 1090 | if (self.cohortsEnabled) {
|
1088 | 1091 | self.widget = self.parseTargeting(widget);
|
1089 | 1092 | }
|
|
1177 | 1180 | });
|
1178 | 1181 |
|
1179 | 1182 | var UserFeedbackRatingsTable = countlyVue.views.create({
|
| 1183 | + mixins: [countlyVue.mixins.commonFormatters], |
1180 | 1184 | template: CV.T('/star-rating/templates/users-feedback-ratings-table.html'),
|
1181 | 1185 | props: {
|
1182 | 1186 | ratings: {
|
|
0 commit comments