UBERF-5482 (#4619)

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
Denis Bykhov
2024-02-14 13:19:34 +07:00
committed by GitHub
parent 71ae492316
commit 2f3bba642f
4 changed files with 34 additions and 18 deletions
@@ -15,7 +15,7 @@
<script lang="ts">
import { getClient } from '@hcengineering/presentation'
import setting, { settingId } from '@hcengineering/setting'
import support from '@hcengineering/support'
import support, { supportLink } from '@hcengineering/support'
import { getSupportClient } from '@hcengineering/support-resources'
import {
Button,
@@ -100,10 +100,6 @@
}
}
]
async function contactUs () {
await getSupportClient()?.showWidget()
}
</script>
<div class="helpAndSupportPopup">
@@ -192,13 +188,15 @@
</Scroller>
{/if}
<div class="footer">
<Button
id="contact-us"
icon={support.icon.Support}
kind={'ghost'}
on:click={contactUs}
label={support.string.ContactUs}
/>
<a href={supportLink}>
<Button
id="contact-us"
icon={support.icon.Support}
kind={'ghost'}
label={support.string.ContactUs}
stopPropagation={false}
/>
</a>
</div>
</div>
@@ -21,7 +21,7 @@
import { IntlString, broadcastEvent, getMetadata, getResource } from '@hcengineering/platform'
import { ActionContext, createQuery, getClient } from '@hcengineering/presentation'
import setting from '@hcengineering/setting'
import support, { SupportStatus } from '@hcengineering/support'
import support, { SupportStatus, supportLink } from '@hcengineering/support'
import {
AnyComponent,
Button,
@@ -712,6 +712,16 @@
size={appsMini ? 'small' : 'large'}
on:click={() => showPopup(AppSwitcher, { apps: getApps(apps) }, popupPosition)}
/>
<a href={supportLink}>
<AppItem
icon={support.icon.Support}
label={support.string.ContactUs}
size={appsMini ? 'small' : 'large'}
notify={supportStatus?.hasUnreadMessages}
selected={supportStatus?.visible}
loading={supportWidgetLoading}
/>
</a>
<!-- {#await supportClient then client}
{#if client}
<AppItem
@@ -953,9 +963,6 @@
&-mobile {
margin-bottom: 1rem;
}
&:not(.mini) > *:not(:last-child) {
margin-bottom: 0.75rem;
}
&.mini > *:not(:last-child) {
margin-bottom: 0.25rem;
}