mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
fix: cross org progress. cc @TorstenDittmann ^_^
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
import { page } from '$app/stores';
|
||||
import { addNotification } from '$lib/stores/notifications';
|
||||
import { base } from '$app/paths';
|
||||
import { getProjectId } from '$lib/helpers/project';
|
||||
|
||||
let backupRestoreItems: {
|
||||
archives: Map<string, BackupArchive>;
|
||||
@@ -93,7 +94,7 @@
|
||||
|
||||
if ($collection === 'restorations') {
|
||||
const { newId, newName } =
|
||||
collectionMap.get($id).options?.['databases']?.['database'][0] || {};
|
||||
collectionMap.get($id).options?.['databases']?.['database'][0] || {};
|
||||
|
||||
showRestoreNotification(newId, newName);
|
||||
}
|
||||
@@ -149,6 +150,9 @@
|
||||
if (isSelfHosted || (isCloud && $organization.billingPlan === BillingPlan.FREE)) return;
|
||||
|
||||
sdk.forConsole.client.subscribe('console', (response) => {
|
||||
// nice!
|
||||
if (!response.channels.includes(`projects.${getProjectId()}`)) return;
|
||||
|
||||
if (
|
||||
response.events.includes('archives.*') ||
|
||||
response.events.includes('restorations.*')
|
||||
|
||||
Reference in New Issue
Block a user