forked from github/plane
chore: project publish modal improvement (#4422)
This commit is contained in:
parent
27315a8aa2
commit
dc77e4afdb
@ -139,13 +139,7 @@ export const PublishProjectModal: React.FC<Props> = observer((props) => {
|
|||||||
const handlePublishProject = async (payload: IProjectPublishSettings) => {
|
const handlePublishProject = async (payload: IProjectPublishSettings) => {
|
||||||
if (!workspaceSlug) return;
|
if (!workspaceSlug) return;
|
||||||
|
|
||||||
return publishProject(workspaceSlug.toString(), project.id, payload)
|
return publishProject(workspaceSlug.toString(), project.id, payload);
|
||||||
.then((res) => {
|
|
||||||
handleClose();
|
|
||||||
// window.open(`${plane_deploy_url}/${workspaceSlug}/${project.id}`, "_blank");
|
|
||||||
return res;
|
|
||||||
})
|
|
||||||
.catch((err) => err);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const handleUpdatePublishSettings = async (payload: IProjectPublishSettings) => {
|
const handleUpdatePublishSettings = async (payload: IProjectPublishSettings) => {
|
||||||
@ -174,10 +168,6 @@ export const PublishProjectModal: React.FC<Props> = observer((props) => {
|
|||||||
setIsUnPublishing(true);
|
setIsUnPublishing(true);
|
||||||
|
|
||||||
await unPublishProject(workspaceSlug.toString(), project.id, publishId)
|
await unPublishProject(workspaceSlug.toString(), project.id, publishId)
|
||||||
.then((res) => {
|
|
||||||
handleClose();
|
|
||||||
return res;
|
|
||||||
})
|
|
||||||
.catch(() =>
|
.catch(() =>
|
||||||
setToast({
|
setToast({
|
||||||
type: TOAST_TYPE.ERROR,
|
type: TOAST_TYPE.ERROR,
|
||||||
|
Loading…
Reference in New Issue
Block a user