Skip to content

Commit b2c3143

Browse files
authored
fix: report issue button UI implementation (#573)
Signed-off-by: Efren Lim <elim@linuxfoundation.org>
1 parent fa1394e commit b2c3143

File tree

2 files changed

+12
-21
lines changed

2 files changed

+12
-21
lines changed

frontend/app/components/modules/project/components/shared/header.vue

Lines changed: 11 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,17 @@ SPDX-License-Identifier: MIT
7171
</div>
7272
</div>
7373
<div class="hidden sm:flex items-center gap-4">
74+
<lfx-button
75+
type="tertiary"
76+
class="!rounded-full text-nowrap"
77+
@click="openReportModal()"
78+
>
79+
<lfx-icon
80+
name="comment-exclamation"
81+
class="text-warning-600"
82+
/>
83+
Report issue
84+
</lfx-button>
7485
<lfx-button
7586
type="tertiary"
7687
class="!rounded-full"
@@ -79,24 +90,6 @@ SPDX-License-Identifier: MIT
7990
<lfx-icon name="link-simple" />
8091
Share
8192
</lfx-button>
82-
<lfx-dropdown
83-
placement="bottom-end"
84-
width="12.5rem"
85-
>
86-
<template #trigger>
87-
<lfx-icon-button
88-
icon="ellipsis"
89-
type="transparent"
90-
/>
91-
</template>
92-
<lfx-dropdown-item @click="openReportModal()">
93-
<lfx-icon
94-
name="comment-exclamation"
95-
class="!text-neutral-900"
96-
/>
97-
Report issue
98-
</lfx-dropdown-item>
99-
</lfx-dropdown>
10093
</div>
10194
</div>
10295
</div>
@@ -179,8 +172,6 @@ import useResponsive from "~/components/shared/utils/responsive";
179172
import {useProjectStore} from "~/components/modules/project/store/project.store";
180173
import LfxOrganizationLogo from "~/components/uikit/organization-logo/organization-logo.vue";
181174
import LfxProjectMenu from "~/components/modules/project/components/shared/header/project-menu.vue";
182-
import LfxDropdown from "~/components/uikit/dropdown/dropdown.vue";
183-
import LfxDropdownItem from "~/components/uikit/dropdown/dropdown-item.vue";
184175
import {useReportStore} from "~/components/shared/modules/report/store/report.store";
185176
import {useShareStore} from "~/components/shared/modules/share/store/share.store";
186177
import { LfxRoutes } from '~/components/shared/types/routes';

frontend/app/config/menu/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export const lfxMenu: MenuConfig = {
3232
route: LfxRoutes.OPENSOURCEINDEX
3333
},
3434
{
35-
label: 'Documentation',
35+
label: 'Docs',
3636
icon: 'book-open',
3737
href: '/docs/introduction/what-is-insights/'
3838
}

0 commit comments

Comments
 (0)