feat: Add title while linking the linear issue (#9529)

This commit is contained in:
Muhsin Keloth
2024-05-23 13:32:41 +05:30
committed by GitHub
parent 0c4c561313
commit f83af33b87
6 changed files with 39 additions and 12 deletions

View File

@@ -30,7 +30,7 @@
class="!items-start [&>div]:!top-12"
>
<create-or-link-issue
:conversation-id="conversationId"
:conversation="conversation"
:account-id="currentAccountId"
@close="closePopup"
/>
@@ -63,6 +63,10 @@ const shouldShowPopup = ref(false);
const currentAccountId = getters.getCurrentAccountId;
const conversation = computed(() =>
getters.getConversationById.value(props.conversationId)
);
const tooltipText = computed(() => {
return linkedIssue.value === null
? t('INTEGRATION_SETTINGS.LINEAR.ADD_OR_LINK_BUTTON')
@@ -86,7 +90,7 @@ const unlinkIssue = async linkId => {
linkedIssue.value = null;
useAlert(t('INTEGRATION_SETTINGS.LINEAR.UNLINK.SUCCESS'));
} catch (error) {
useAlert(t('INTEGRATION_SETTINGS.LINEAR.UNLINK.DELETE_ERROR'));
useAlert(t('INTEGRATION_SETTINGS.LINEAR.UNLINK.ERROR'));
}
};