diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 43e29b17a..2b030af8b 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -117,10 +117,6 @@ Most components are named according to the combination of a resource and an acti
* `Edit` or `Update`. A component used to update an existing resource of a particular type.
* `Delete`. A modal used to delete an existing resource of a particular type.
-### Vue Mixins
-
-Each component may use one or more mixins. Each file in [`/src/mixins/`](/src/mixins/) exports a mixin factory for a single type of mixin. (We use factories so that the component can pass in options for the mixin. We don't use this pattern much anymore though, so we will likely change this when we move to Vue 3.)
-
### Composables
Each component may use one or more of the composables in [`/src/composables/`](/src/composables/). Most composables will reside in that directory, but if it makes sense to group a composable with other functionality, it may be defined elsewhere. For example, the `useSessions()` composable is defined in [`/src/util/session.js`](/src/util/session.js).
diff --git a/src/components/analytics/list.vue b/src/components/analytics/list.vue
index e6ac99564..61fc1eddc 100644
--- a/src/components/analytics/list.vue
+++ b/src/components/analytics/list.vue
@@ -22,7 +22,7 @@ except according to the terms contained in the LICENSE file.
-
+ {{ $t('auditsTitle') }}
@@ -32,7 +32,7 @@ except according to the terms contained in the LICENSE file.
-
+
@@ -43,8 +43,8 @@ import AuditTable from '../audit/table.vue';
import Loading from '../loading.vue';
import PageSection from '../page/section.vue';
-import modal from '../../mixins/modal';
import { apiPaths } from '../../util/request';
+import { modalData } from '../../util/reactivity';
import { useRequestData } from '../../request-data';
export default {
@@ -56,19 +56,12 @@ export default {
Loading,
PageSection
},
- mixins: [modal()],
setup() {
const { analyticsConfig, createResource, resourceStates } = useRequestData();
const audits = createResource('audits');
return {
- analyticsConfig, audits, ...resourceStates([analyticsConfig, audits])
- };
- },
- data() {
- return {
- preview: {
- state: false
- }
+ analyticsConfig, audits, ...resourceStates([analyticsConfig, audits]),
+ previewModal: modalData()
};
},
created() {
diff --git a/src/components/form-attachment/link-dataset.vue b/src/components/form-attachment/link-dataset.vue
index 57b2184ff..395dc7eb9 100644
--- a/src/components/form-attachment/link-dataset.vue
+++ b/src/components/form-attachment/link-dataset.vue
@@ -15,11 +15,13 @@ except according to the terms contained in the LICENSE file.
{{ $t('title') }}