Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 3b362bb90c | |||
| be4a3f119c |
@@ -145,9 +145,35 @@ const projectNavigatorTippy = computed(() =>
|
||||
|
||||
const clientId = projectAccount.value.accountInfo.id
|
||||
|
||||
const accountExists = accountStore.isAccountExistsById(props.project.accountId)
|
||||
const accountExists =
|
||||
accountStore.isAccountExistsById(props.project.accountId) ||
|
||||
accountStore.isAccountExistsByServer(props.project.serverUrl)
|
||||
|
||||
console.log('[ProjectModelGroup] Mounting for project:', {
|
||||
projectId: props.project.projectId,
|
||||
storedAccountId: props.project.accountId,
|
||||
storedServerUrl: props.project.serverUrl,
|
||||
accountExists,
|
||||
existsById: accountStore.isAccountExistsById(props.project.accountId),
|
||||
existsByServer: accountStore.isAccountExistsByServer(props.project.serverUrl),
|
||||
availableAccounts: accountStore.accounts.map((a) => ({
|
||||
id: a.accountInfo.id,
|
||||
serverUrl: a.accountInfo.serverInfo.url
|
||||
}))
|
||||
})
|
||||
|
||||
console.log('[ProjectModelGroup] Mounting for project:', {
|
||||
projectId: props.project.projectId,
|
||||
serverUrl: props.project.serverUrl,
|
||||
storedAccountId: props.project.accountId,
|
||||
accountExists
|
||||
})
|
||||
|
||||
if (!accountExists) {
|
||||
console.log(
|
||||
'[ProjectModelGroup] Account not found on this machine — marking project as inaccessible:',
|
||||
props.project.projectId
|
||||
)
|
||||
projectIsAccesible.value = false
|
||||
}
|
||||
|
||||
@@ -177,7 +203,13 @@ watch(projectDetails, (newValue) => {
|
||||
projectIsAccesible.value = newValue !== undefined
|
||||
})
|
||||
|
||||
onProjectDetailsError(() => {
|
||||
onProjectDetailsError((err) => {
|
||||
console.log('[ProjectModelGroup] projectDetailsQuery errored:', {
|
||||
projectId: props.project.projectId,
|
||||
error: err.message,
|
||||
graphQLErrors: err.graphQLErrors,
|
||||
networkError: err.networkError
|
||||
})
|
||||
projectIsAccesible.value = false
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user