mirror of
https://github.com/hcengineering/platform.git
synced 2026-08-24 13:22:23 +02:00
UBERF-9724: Use updated accounts (#8452)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user