diff --git a/src/components/dataset/entities.vue b/src/components/dataset/entities.vue
index 396ccdd1c..76c830b92 100644
--- a/src/components/dataset/entities.vue
+++ b/src/components/dataset/entities.vue
@@ -19,6 +19,11 @@ except according to the terms contained in the LICENSE file.
class="btn btn-primary" @click="upload.show()">
{{ $t('upload') }}
+
+
@@ -50,6 +57,7 @@ except according to the terms contained in the LICENSE file.
import { defineAsyncComponent, watchEffect, computed } from 'vue';
import { useRouter } from 'vue-router';
+import EntityCreate from '../entity/create.vue';
import EntityList from '../entity/list.vue';
import OdataAnalyze from '../odata/analyze.vue';
import OdataDataAccess from '../odata/data-access.vue';
@@ -66,6 +74,7 @@ import { noop } from '../../util/util';
export default {
name: 'DatasetEntities',
components: {
+ EntityCreate,
OdataAnalyze,
OdataDataAccess,
EntityList,
@@ -114,6 +123,7 @@ export default {
data() {
return {
upload: modalData('EntityUpload'),
+ create: modalData(),
analyze: modalData()
};
},
@@ -135,6 +145,12 @@ export default {
// reflects the new entities.
this.dataset.entities += count;
},
+ afterCreate() {
+ this.create.hide();
+ this.alert.success(this.$t('alert.create'));
+ this.$refs.list.reset();
+ this.dataset.entities += 1;
+ },
fetchDeletedCount() {
this.deletedEntityCount.request({
method: 'GET',
@@ -197,8 +213,11 @@ export default {
{
"en": {
"upload": "Upload Entities",
+ // This is shown on a button for creating new Entities
+ "new": "New",
"alert": {
- "upload": "Your Entities have been successfully uploaded."
+ "upload": "Your Entities have been successfully uploaded.",
+ "create": "Entity has been successfully created."
},
"purgeDescription": "Entities are deleted after 30 days in the Trash",
"action": {
diff --git a/src/components/entity/create.vue b/src/components/entity/create.vue
new file mode 100644
index 000000000..fc3b4cc3d
--- /dev/null
+++ b/src/components/entity/create.vue
@@ -0,0 +1,16 @@
+
+
+
+
+
diff --git a/src/components/entity/update.vue b/src/components/entity/update.vue
index 6f9c349aa..258e61168 100644
--- a/src/components/entity/update.vue
+++ b/src/components/entity/update.vue
@@ -10,69 +10,12 @@ including this file, may be copied, modified, propagated, or distributed
except according to the terms contained in the LICENSE file.
-->
-
- {{ $t('title', currentVersion) }}
-
-
-
-
+
-
-
-
-
-{
- "en": {
- // This is the title at the top of a pop-up. {label} is the label of an
- // Entity.
- "title": "Update {label}",
- // This is the text of a table column header. "Value" refers to the value of
- // an Entity property.
- "header": {
- "currentValue": "Current Value",
- "updatedValue": "Updated Value"
- },
- "geometryDisabled": "Geometry can’t be updated from the map.",
- "problem": {
- "409_15": "Data has been modified by another user. Please refresh to see the updated data."
- }
- }
-}
-
-
-
-
-{
- "cs": {
- "title": "Aktualizace {label}",
- "header": {
- "currentValue": "Aktuální hodnota",
- "updatedValue": "Aktualizovaná hodnota"
- },
- "problem": {
- "409_15": "Data byla upravena jiným uživatelem. Aktualizujte prosím stránku, abyste viděli aktualizovaná data."
- }
- },
- "de": {
- "title": "Aktualisieren {label}",
- "header": {
- "currentValue": "Aktueller Wert",
- "updatedValue": "Aktualisierter Wert"
- },
- "geometryDisabled": "Die Geometrie kann nicht über die Karte aktualisiert werden.",
- "problem": {
- "409_15": "Die Daten wurden von einem anderen Benutzer geändert. Bitte aktualisieren Sie die Seite, um die aktualisierten Daten anzuzeigen."
- }
- },
- "es": {
- "title": "Actualizar {label}",
- "header": {
- "currentValue": "Valor actual",
- "updatedValue": "Valor actualizado"
- },
- "geometryDisabled": "La geometría no se puede actualizar desde el mapa.",
- "problem": {
- "409_15": "Los datos han sido modificados por otro usuario. Actualice para ver los datos actualizados."
- }
- },
- "fr": {
- "title": "Mise à jour {label}",
- "header": {
- "currentValue": "Valeur actuelle",
- "updatedValue": "Valeur Mise à jour"
- },
- "geometryDisabled": "La géométrie ne peut être modifiée depuis la carte.",
- "problem": {
- "409_15": "Les données ont été modifiées par un autre utilisateur. Merci de rafraîchir pour voir les données mises à jour."
- }
- },
- "it": {
- "title": "Aggiorna {label}",
- "header": {
- "currentValue": "Valore corrente",
- "updatedValue": "Valore aggiornato"
- },
- "geometryDisabled": "La geometria non può essere aggiornata dalla mappa.",
- "problem": {
- "409_15": "I dati sono stati modificati da un altro utente. Aggiornare per vedere i dati aggiornati."
- }
- },
- "pt": {
- "title": "Atualizar {label}",
- "header": {
- "currentValue": "Valor Atual",
- "updatedValue": "Valor Atualizado"
- },
- "problem": {
- "409_15": "Os dados foram modificados por outro usuário. Por favor, atualize a página para ver os dados atualizados."
- }
- },
- "sw": {
- "title": "Sasisha {label}",
- "header": {
- "currentValue": "Thamani ya Sasa",
- "updatedValue": "Thamani Iliyosasishwa"
- },
- "problem": {
- "409_15": "Data imerekebishwa na mtumiaji mwingine. Tafadhali onyesha upya ili kuona data iliyosasishwa."
- }
- },
- "zh": {
- "title": "更新{label}",
- "header": {
- "currentValue": "当前数值",
- "updatedValue": "更新后的数值"
- },
- "geometryDisabled": "无法通过地图更新几何数据。",
- "problem": {
- "409_15": "数据已被其他用户修改,请刷新以查看最新数据。"
- }
- },
- "zh-Hant": {
- "title": "更新{label}",
- "header": {
- "currentValue": "目前數值",
- "updatedValue": "更新數值"
- },
- "geometryDisabled": "無法透過地圖更新地理資料。",
- "problem": {
- "409_15": "資料已被另一用戶修改。請重新整理查看更新後的資料。"
- }
- }
-}
-
diff --git a/src/components/entity/update/row.vue b/src/components/entity/update/row.vue
index 6849000bd..5e082d1ce 100644
--- a/src/components/entity/update/row.vue
+++ b/src/components/entity/update/row.vue
@@ -10,22 +10,16 @@ including this file, may be copied, modified, propagated, or distributed
except according to the terms contained in the LICENSE file.
-->
-