[go: up one dir, main page]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(dashboard): Add pause modal #7046

Open
wants to merge 5 commits into
base: next
Choose a base branch
from
Open

feat(dashboard): Add pause modal #7046

wants to merge 5 commits into from

Conversation

BiswaViraj
Copy link
Member

What changed? Why was the change needed?

Screenshots

Screen.Recording.2024-11-18.at.4.34.36.PM.mov
Expand for optional sections

Related enterprise PR

Special notes for your reviewer

Copy link
netlify bot commented Nov 18, 2024

Deploy Preview for novu-stg-vite-dashboard-poc ready!

Name Link
🔨 Latest commit 40b702c
🔍 Latest deploy log https://app.netlify.com/sites/novu-stg-vite-dashboard-poc/deploys/673b2dea8dbf5b00086b433a
😎 Deploy Preview https://deploy-preview-7046--novu-stg-vite-dashboard-poc.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@@ -12,3 +12,6 @@ export const EXCLUDED_EDITOR_TYPES: string[] = [
StepTypeEnum.TRIGGER,
StepTypeEnum.CUSTOM,
];

export const PAUSE_MODAL_TITLE = 'Proceeding will pause the workflow';
export const PAUSE_MODAL_DESCRIPTION = 'This workflow cannot be triggered if paused, please confirm to proceed.';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
export const PAUSE_MODAL_DESCRIPTION = 'This workflow cannot be triggered if paused, please confirm to proceed.';
export const PAUSE_MODAL_DESCRIPTION = 'The ${workflowName} cannot be triggered if paused, please confirm to proceed.';

@@ -237,7 +251,16 @@ export const WorkflowRow = ({ workflow }: WorkflowRowProps) => {
</DropdownMenuGroup>
<DropdownMenuSeparator />
<DropdownMenuGroup className="*:cursor-pointer">
<DropdownMenuItem disabled={workflow.status === WorkflowStatusEnum.ERROR}>
<DropdownMenuItem
=> {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Prefer to make this an onClick handler function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants