@adminforth/list-in-place-edit 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build.log +2 -2
- package/custom/InPlaceEdit.vue +3 -1
- package/dist/custom/InPlaceEdit.vue +3 -1
- package/package.json +3 -2
package/build.log
CHANGED
package/custom/InPlaceEdit.vue
CHANGED
|
@@ -51,7 +51,9 @@ import { callAdminForthApi } from '@/utils';
|
|
|
51
51
|
import { showErrorTost, showSuccesTost } from '@/composables/useFrontendApi';
|
|
52
52
|
import ValueRenderer from '@/components/ValueRenderer.vue';
|
|
53
53
|
import ColumnValueInputWrapper from '@/components/ColumnValueInputWrapper.vue';
|
|
54
|
+
import { useI18n } from 'vue-i18n';
|
|
54
55
|
|
|
56
|
+
const { t } = useI18n();
|
|
55
57
|
const props = defineProps(['column', 'record', 'resource', 'adminUser', 'meta']);
|
|
56
58
|
const isEditing = ref(false);
|
|
57
59
|
const editValue = ref(null);
|
|
@@ -127,7 +129,7 @@ async function saveEdit() {
|
|
|
127
129
|
return;
|
|
128
130
|
}
|
|
129
131
|
|
|
130
|
-
showSuccesTost('Field updated successfully');
|
|
132
|
+
showSuccesTost(t('Field updated successfully'));
|
|
131
133
|
props.record[props.column.name] = currentValues.value[props.column.name];
|
|
132
134
|
isEditing.value = false;
|
|
133
135
|
} finally {
|
|
@@ -51,7 +51,9 @@ import { callAdminForthApi } from '@/utils';
|
|
|
51
51
|
import { showErrorTost, showSuccesTost } from '@/composables/useFrontendApi';
|
|
52
52
|
import ValueRenderer from '@/components/ValueRenderer.vue';
|
|
53
53
|
import ColumnValueInputWrapper from '@/components/ColumnValueInputWrapper.vue';
|
|
54
|
+
import { useI18n } from 'vue-i18n';
|
|
54
55
|
|
|
56
|
+
const { t } = useI18n();
|
|
55
57
|
const props = defineProps(['column', 'record', 'resource', 'adminUser', 'meta']);
|
|
56
58
|
const isEditing = ref(false);
|
|
57
59
|
const editValue = ref(null);
|
|
@@ -127,7 +129,7 @@ async function saveEdit() {
|
|
|
127
129
|
return;
|
|
128
130
|
}
|
|
129
131
|
|
|
130
|
-
showSuccesTost('Field updated successfully');
|
|
132
|
+
showSuccesTost(t('Field updated successfully'));
|
|
131
133
|
props.record[props.column.name] = currentValues.value[props.column.name];
|
|
132
134
|
isEditing.value = false;
|
|
133
135
|
} finally {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adminforth/list-in-place-edit",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"type": "module",
|
|
@@ -28,7 +28,8 @@
|
|
|
28
28
|
"url": "https://github.com/devforth/adminforth-list-in-place-edit"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"adminforth": "latest"
|
|
31
|
+
"adminforth": "latest",
|
|
32
|
+
"vue-i18n": "^11.1.3"
|
|
32
33
|
},
|
|
33
34
|
"release": {
|
|
34
35
|
"plugins": [
|