From 39af749870c7dd46dc2576b997210e11a3035ddd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Furkan=20Ba=C5=9Faran?= Date: Tue, 15 Mar 2022 12:13:22 +0300 Subject: [PATCH] overwritten lines brought back. --- .../public/javascripts/countly.views.js | 30 +++++++++++++++---- .../public/templates/widgets-table.html | 30 +++++++++++-------- 2 files changed, 41 insertions(+), 19 deletions(-) diff --git a/plugins/star-rating/frontend/public/javascripts/countly.views.js b/plugins/star-rating/frontend/public/javascripts/countly.views.js index c5346187ebf..da000e12140 100644 --- a/plugins/star-rating/frontend/public/javascripts/countly.views.js +++ b/plugins/star-rating/frontend/public/javascripts/countly.views.js @@ -166,7 +166,15 @@ data: function() { return { cohortsEnabled: countlyGlobal.plugins.indexOf('cohorts') > -1, - widgetsTablePersistKey: 'widgets_table_' + countlyCommon.ACTIVE_APP_ID + persistKey: 'ratingsWidgetsTable_' + countlyCommon.ACTIVE_APP_ID, + tableDynamicCols: [ + { + value: "target_pages", + label: CV.i18n("feedback.pages"), + default: true, + required: true + } + ], }; }, computed: { @@ -443,6 +451,11 @@ ], data: function() { return { + empty: { + title: CV.i18n("ratings.empty.title"), + body: CV.i18n("ratings.empty.body"), + image: "/star-rating/images/star-rating/ratings-empty.svg" + }, widgets: [], drawerSettings: { createTitle: CV.i18n('feedback.add-widget'), @@ -658,19 +671,24 @@ // reset cumulative data self.cumulativeData = [{ count: 0, - percent: 0 + percent: 0, + rating: 0 }, { count: 0, - percent: 0 + percent: 0, + rating: 1 }, { count: 0, - percent: 0 + percent: 0, + rating: 2 }, { count: 0, - percent: 0 + percent: 0, + rating: 3 }, { count: 0, - percent: 0 + percent: 0, + rating: 4 }]; var ratingArray = []; diff --git a/plugins/star-rating/frontend/public/templates/widgets-table.html b/plugins/star-rating/frontend/public/templates/widgets-table.html index e8d8b83bed4..b95677dadea 100644 --- a/plugins/star-rating/frontend/public/templates/widgets-table.html +++ b/plugins/star-rating/frontend/public/templates/widgets-table.html @@ -1,7 +1,9 @@ + :persist-key="persistKey" + :available-dynamic-cols="tableDynamicCols" + width="100%"> + \ No newline at end of file