@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 CHANGED
@@ -7,5 +7,5 @@ custom/
7
7
  custom/InPlaceEdit.vue
8
8
  custom/tsconfig.json
9
9
 
10
- sent 4,900 bytes received 58 bytes 9,916.00 bytes/sec
11
- total size is 4,685 speedup is 0.94
10
+ sent 4,964 bytes received 58 bytes 10,044.00 bytes/sec
11
+ total size is 4,749 speedup is 0.95
@@ -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.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": [