UI - МЕЖПРОЕКТНАЯ КОММУНИКАЦИЯ: вкладка хранилища в модальных настройках

This commit is contained in:
DCCONSTRUCTIONS
2026-04-27 15:38:23 +03:00
parent d9f534efcd
commit c3d2d78724
13 changed files with 322 additions and 9 deletions
@@ -27,6 +27,7 @@ import type {
IWorkspaceSidebarNavigationItem,
IWorkspaceSidebarNavigation,
IWorkspaceUserPropertiesResponse,
IWorkspaceStorageSummaryResponse,
} from "@plane/types";
// services
import { APIService } from "@/services/api.service";
@@ -52,6 +53,14 @@ export class WorkspaceService extends APIService {
});
}
async fetchWorkspaceStorageSummary(workspaceSlug: string): Promise<IWorkspaceStorageSummaryResponse> {
return this.get(`/api/workspaces/${workspaceSlug}/storage/summary/`)
.then((response) => response?.data)
.catch((error) => {
throw error?.response?.data;
});
}
async createWorkspace(data: Partial<IWorkspace>): Promise<IWorkspace> {
return this.post("/api/workspaces/", data)
.then((response) => response?.data)