add nova
This commit is contained in:
28
nova/resources/js/mixins/TogglesTrashed.js
Normal file
28
nova/resources/js/mixins/TogglesTrashed.js
Normal file
@@ -0,0 +1,28 @@
|
||||
export default {
|
||||
data: () => ({
|
||||
withTrashed: false,
|
||||
}),
|
||||
|
||||
methods: {
|
||||
/**
|
||||
* Toggle the trashed state of the search
|
||||
*/
|
||||
toggleWithTrashed() {
|
||||
this.withTrashed = !this.withTrashed
|
||||
},
|
||||
|
||||
/**
|
||||
* Enable searching for trashed resources
|
||||
*/
|
||||
enableWithTrashed() {
|
||||
this.withTrashed = true
|
||||
},
|
||||
|
||||
/**
|
||||
* Disable searching for trashed resources
|
||||
*/
|
||||
disableWithTrashed() {
|
||||
this.withTrashed = false
|
||||
},
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user