-
Notifications
You must be signed in to change notification settings - Fork 1
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
BI-2377 - Add Delete Option to Experiments View #423
Conversation
<template> | ||
<section | ||
v-bind:id="'deleteModal-' + uniqueId" | ||
v-bind:class="modalClass" | ||
> | ||
<FormModal | ||
v-bind:active.sync="active" | ||
v-bind:title="modalTitle" | ||
v-on:deactivate="closeDeleteModal" | ||
> | ||
<template #form> | ||
<slot name="form" /> | ||
</template> | ||
<template #buttons> | ||
<div class="columns"> | ||
<div class="column is-whole has-text-centered buttons"> | ||
<button | ||
class="button is-primary has-text-weight-bold" | ||
v-on:click="invokeDeleteAction" | ||
> | ||
<strong>Yes</strong> | ||
</button> | ||
<button | ||
class="button" | ||
v-on:click="closeDeleteModal" | ||
> | ||
Cancel | ||
</button> | ||
</div> | ||
</div> | ||
</template> | ||
</FormModal> | ||
</section> | ||
</template> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This modal seems to be based off of /src/components/modals/ConfirmationModal.vue. The germplasm list delete uses ConfirmationModal.vue in the same way DeleteModal is being used here. Is there a reason to add a new modal component or can ConfirmationModal.vue be used for experiments as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks.
Done
src/config/AppAbility.ts
Outdated
@@ -17,7 +17,7 @@ | |||
|
|||
import {Ability, AbilityClass} from '@casl/ability'; | |||
|
|||
type Actions = 'manage' | 'create' | 'read' | 'update' | 'delete' | 'archive' | 'access' | 'submit'; | |||
type Actions = 'manage' | 'delete' |'create' | 'read' | 'update' | 'delete' | 'archive' | 'access' | 'submit'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'delete'
is already present between update and archive and shouldn't need to be added again.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you.
Implemented.
316f1e1
to
8146a9e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think there should probably be a success notification when an experiment is successfully deleted to be consistent with behavior in other areas of the UI. Other than that testing looked good.
@nickpalladino The success notification was aded |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Testing looks good
0922fff
to
a4fdc69
Compare
Description
BI-2377 Add Delete Option to Experiments View
Also fixed one accessibility issue ("Text not included in an ARIA landmark")
Dependencies
bi-api: develop
brapi-Java-TestServer: develop (be sure to pull the latest version. there is a needed bug fix)
Testing
Checklist: