fix: rename 'Feedbacks' to 'Feedback' in UI and URL (#20296)
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
$: {
|
||||
const pathParts = $page.url.pathname.split('/');
|
||||
const tabFromPath = pathParts[pathParts.length - 1];
|
||||
selectedTab = ['leaderboard', 'feedbacks'].includes(tabFromPath) ? tabFromPath : 'leaderboard';
|
||||
selectedTab = ['leaderboard', 'feedback'].includes(tabFromPath) ? tabFromPath : 'leaderboard';
|
||||
}
|
||||
|
||||
$: if (selectedTab) {
|
||||
@@ -88,13 +88,13 @@
|
||||
</button>
|
||||
|
||||
<button
|
||||
id="feedbacks"
|
||||
id="feedback"
|
||||
class="px-0.5 py-1 min-w-fit rounded-lg lg:flex-none flex text-right transition {selectedTab ===
|
||||
'feedbacks'
|
||||
'feedback'
|
||||
? ''
|
||||
: ' text-gray-300 dark:text-gray-600 hover:text-gray-700 dark:hover:text-white'}"
|
||||
on:click={() => {
|
||||
goto('/admin/evaluations/feedbacks');
|
||||
goto('/admin/evaluations/feedback');
|
||||
}}
|
||||
>
|
||||
<div class=" self-center mr-2">
|
||||
@@ -111,14 +111,14 @@
|
||||
/>
|
||||
</svg>
|
||||
</div>
|
||||
<div class=" self-center">{$i18n.t('Feedbacks')}</div>
|
||||
<div class=" self-center">{$i18n.t('Feedback')}</div>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div class="flex-1 mt-1 lg:mt-0 px-[16px] lg:pr-[16px] lg:pl-0 overflow-y-scroll">
|
||||
{#if selectedTab === 'leaderboard'}
|
||||
<Leaderboard {feedbacks} />
|
||||
{:else if selectedTab === 'feedbacks'}
|
||||
{:else if selectedTab === 'feedback'}
|
||||
<Feedbacks />
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
@@ -179,7 +179,7 @@
|
||||
<div class="scrollbar-hidden relative whitespace-nowrap overflow-x-auto max-w-full">
|
||||
{#if (items ?? []).length === 0}
|
||||
<div class="text-center text-xs text-gray-500 dark:text-gray-400 py-1">
|
||||
{$i18n.t('No feedbacks found')}
|
||||
{$i18n.t('No feedback found')}
|
||||
</div>
|
||||
{:else}
|
||||
<table
|
||||
|
||||
@@ -752,6 +752,7 @@
|
||||
"Features": "",
|
||||
"Features Permissions": "",
|
||||
"February": "",
|
||||
"Feedback": "",
|
||||
"Feedback deleted successfully": "",
|
||||
"Feedback Details": "",
|
||||
"Feedback History": "",
|
||||
|
||||
Reference in New Issue
Block a user