在我们网站的编辑页面中,我有一个垫卡/工作区列表,并且每个工作区的右上角都有编辑图标。通过单击该编辑图标,您将进入该工作区的编辑页面,其中有一个删除按钮,单击该按钮时会显示一个对话框,并允许用户决定是否确实要删除该工作区。
不太确定如何进行 API 调用
.name.length > 0 && this.description.length > 0) {
//map
this.workspace.name = this.name;
this.workspace.description = this.description;
this.workspace.type = WorkspaceType.public; //all workspaces that are created are public by default
//create
this.workspaceService.createWorkspace(this.workspace).subscribe(workspace => {
this.saving = false;
this.gotoManage();
this.snackbar.open(this.workspace.name+ " has been created!!", "", {duration :2500});
}, () => this.saving = false);
}
}
MM们
相关分类