confirmation modal for deleting an application
- adds delete-confirmation Vue component - refactors some button styles to make them globally available
This commit is contained in:
15
js/components/delete_confirmation.js
Normal file
15
js/components/delete_confirmation.js
Normal file
@@ -0,0 +1,15 @@
|
||||
export default {
|
||||
name: 'delete-confirmation',
|
||||
|
||||
data: function() {
|
||||
return {
|
||||
deleteText: '',
|
||||
}
|
||||
},
|
||||
|
||||
computed: {
|
||||
valid: function() {
|
||||
return this.deleteText.toLowerCase() === 'delete'
|
||||
},
|
||||
},
|
||||
}
|
Reference in New Issue
Block a user