Add report list button in reporter sidebar

This commit is contained in:
Jože Fortun
2023-11-06 17:39:39 +01:00
parent 2f4ef7ecd4
commit 3bd536bbb5
3 changed files with 16 additions and 9 deletions
@@ -50,14 +50,8 @@
:placeholder="$t('datasources:expression')"
/>
</b-td>
<b-td
class="d-flex align-items-center justify-content-center pl-2 pr-0"
>
<b-td class="align-middle">
<c-input-confirm
variant="link"
size="lg"
show-icon
button-class="text-dark px-0"
@confirmed="deleteGroup(index)"
/>
</b-td>
@@ -6,9 +6,17 @@
class="h-100"
>
<div class="bg-white sticky-top py-2">
<b-button
data-test-id="button-report-list"
variant="light"
class="w-100 mb-2"
:to="{ name: 'report.list' }"
>
{{ $t('report-list') }}
</b-button>
<c-input-search
v-model.trim="query"
:placeholder="$t('sidebar:search-reports')"
:placeholder="$t('search-reports')"
/>
</div>
@@ -24,7 +32,7 @@
v-else
class="d-flex justify-content-center mt-5"
>
{{ $t('sidebar:no-reports') }}
{{ $t('no-reports') }}
</h5>
</portal>
</div>
@@ -35,6 +43,10 @@ import { components } from '@cortezaproject/corteza-vue'
const { CSidebarNavItems, CInputSearch } = components
export default {
i18nOptions: {
namespaces: 'sidebar',
},
components: {
CSidebarNavItems,
CInputSearch,
@@ -1,2 +1,3 @@
report-list: Report List
no-reports: No Reports
search-reports: Search reports