UBERF-9724: Use updated accounts (#8452)

Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
Andrey Sobolev
2025-04-14 09:36:20 +07:00
committed by GitHub
parent 143f0bc7b6
commit 5ca2a73fba
28 changed files with 1506 additions and 1153 deletions
@@ -16,7 +16,7 @@
</script>
{#if spaceObj !== undefined}
{#if auth === undefined || auth.login === '' || auth.error != null}
{#if auth === undefined || auth.login === ''}
{#if !readonly}
<ModernButton
label={github.string.Authorize}
@@ -12,13 +12,14 @@
import { WithLookup, getCurrentAccount } from '@hcengineering/core'
import { GithubAuthentication, GithubIntegration } from '@hcengineering/github'
import { getEmbeddedLabel, getMetadata, translate } from '@hcengineering/platform'
import presentation, { Card, HTMLViewer, NavLink, createQuery } from '@hcengineering/presentation'
import presentation, { Card, HTMLViewer, NavLink, createQuery, getClient } from '@hcengineering/presentation'
import { Integration } from '@hcengineering/setting'
import tracker, { Project } from '@hcengineering/tracker'
import ui, { Button, Label, Loading, TabItem, TabList, location, ticker } from '@hcengineering/ui'
import { createEventDispatcher } from 'svelte'
import github from '../plugin'
import { onAuthorize } from './utils'
import { clientId } from '@hcengineering/client'
export let integration: Integration
@@ -58,6 +59,9 @@
})
function save (): void {
void getClient().diffUpdate(integration, {
value: auth?.login ?? ''
})
dispatch('close', { value: auth?.login ?? '-' })
}
function onConnect (): void {