feat: add publish workspace

This commit is contained in:
MingLiang Wang
2023-01-08 17:09:45 +08:00
parent 153150cd3b
commit d154a28ad1
4 changed files with 31 additions and 12 deletions
@@ -91,10 +91,10 @@ export class Workspaces extends Observable<string> {
return this._workspaces.some(w => w.id === id);
}
public updateWorkspaceMeta(id: string, meta: Partial<WS>) {
public updateWorkspaceInfo(id: string, info: Partial<WS>) {
const index = this._workspaces.findIndex(w => w.id === id);
if (index >= 0) {
this._workspaces[index] = { ...this._workspaces[index], ...meta };
this._workspaces[index] = { ...this._workspaces[index], ...info };
this._updateWorkspaces(this._workspaces);
}
}