Portfolio archiving

This commit is contained in:
George Drummond
2019-06-06 09:18:35 -04:00
parent c6e8c8eb8a
commit cad43af455
14 changed files with 217 additions and 8 deletions

View File

@@ -1,6 +1,13 @@
export default {
name: 'delete-confirmation',
props: {
confirmationText: {
type: String,
default: 'delete',
},
},
data: function() {
return {
deleteText: '',
@@ -9,7 +16,7 @@ export default {
computed: {
valid: function() {
return this.deleteText.toLowerCase() === 'delete'
return this.deleteText.toLowerCase() === this.confirmationText
},
},
}