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