fix(test): minisidebar action test

This commit is contained in:
Ramesh Mane
2025-05-17 06:31:58 +00:00
parent b59c9008c1
commit 4e7b8b3627
3 changed files with 73 additions and 21 deletions

View File

@@ -313,29 +313,29 @@ defineExpose({
</a-input>
</div>
<div
v-if="isUIAllowed('tableCreate', { roles: base.project_role, source: base?.sources?.[0] })"
class="flex items-center w-full p-1 xs:hidden"
>
<NcButton
type="text"
size="small"
full-width
class="nc-home-create-new-btn !text-brand-500 !hover:(text-brand-600) !xs:hidden w-full !px-3"
@click="addNewProjectChildEntity"
<div class="nc-project-home-section pt-1 xs:hidden flex flex-col gap-2">
<div
v-if="isUIAllowed('tableCreate', { roles: base.project_role, source: base?.sources?.[0] })"
class="flex items-center w-full"
>
<div class="flex items-center gap-2">
<GeneralIcon icon="ncPlusCircleSolid" />
<NcButton
type="text"
size="small"
full-width
class="nc-home-create-new-btn !text-brand-500 !hover:(text-brand-600) !xs:hidden w-full !px-3"
@click="addNewProjectChildEntity"
>
<div class="flex items-center gap-2">
<GeneralIcon icon="ncPlusCircleSolid" />
{{
$t('general.createEntity', {
entity: $t('objects.table'),
})
}}
</div>
</NcButton>
</div>
<div class="nc-project-home-section pt-1 !xs:hidden">
{{
$t('general.createEntity', {
entity: $t('objects.table'),
})
}}
</div>
</NcButton>
</div>
<NcButton
v-e="['c:base:home']"
type="text"