Skip to content
This repository has been archived by the owner on Oct 16, 2023. It is now read-only.

tweak: enhance delete confirm dialog #318

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

alvaromm2
Copy link
Contributor

@alvaromm2 alvaromm2 commented Aug 5, 2021

Uses Angular Material's dialog to prompt user for entering workflow name & confirm delete action.

Grabación de pantalla 2021-08-05 a las 17 03 06 mov

Comment on lines +1 to +9
.actions{
display: flex;
flex-direction: row;
justify-content: space-around;
}

.form-field--full-width{
width: 100%;
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Actually these are a bit redundant as we can use bootstrap utility classes flex-row justify-content-around and w-100 for this purpose

@Component({
selector: 'wt-confirm-delete-dialog',
templateUrl: './confirm-delete-dialog.component.html',
styleUrls: ['./confirm-delete-dialog.component.scss']
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh and I missed setting change detection to OnPush (I usually have it configured as the default strategy)

Comment on lines +158 to +159
maxWidth: '90%',
width: '300px',
Copy link
Contributor Author

Choose a reason for hiding this comment

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

These could also be provided as default using the MAT_DIALOG_DEFAULT_OPTIONS DI token if needed & specified by the design system, allowing for less boilerplate.

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

Successfully merging this pull request may close these issues.

1 participant