diff --git a/frontend/src/locales/en.json b/frontend/src/locales/en.json index 5f751c6..c6b1b1b 100644 --- a/frontend/src/locales/en.json +++ b/frontend/src/locales/en.json @@ -10,6 +10,7 @@ "label": "Label", "confirm": "Confirm", "close": "Close", + "accept": "Accept", // Common status "loading": "Loading...", diff --git a/frontend/src/locales/es.json b/frontend/src/locales/es.json index 3fa1291..e945e34 100644 --- a/frontend/src/locales/es.json +++ b/frontend/src/locales/es.json @@ -6,7 +6,8 @@ "create": "Crear", "apply": "Aplicar", "preview": "Vista previa", - "label": "Etiqueta", + "label": "Etiqueta", + "accept": "Aceptar", "confirm": "Confirmar", "close": "Cerrar", "loading": "Cargando...", diff --git a/frontend/src/locales/fr.json b/frontend/src/locales/fr.json index cca1d43..697f101 100644 --- a/frontend/src/locales/fr.json +++ b/frontend/src/locales/fr.json @@ -9,6 +9,7 @@ "label": "Étiquette", "confirm": "Confirmer", "close": "Fermer", + "accept": "Accepter", "loading": "Chargement...", "error": "Erreur", "success": "Succès", diff --git a/frontend/src/views/profile/ProfilePage.vue b/frontend/src/views/profile/ProfilePage.vue index 99aaef9..bf549e6 100644 --- a/frontend/src/views/profile/ProfilePage.vue +++ b/frontend/src/views/profile/ProfilePage.vue @@ -75,6 +75,8 @@ const creatorProfileStore = useCreatorProfileStore(); const dialogShown = ref(false); const currentComponent = ref(''); +const restoreDialogShown = ref(false); +const deleteDialogShown = ref(false); const componentsMap = { EmailDialog: markRaw(EmailDialog), @@ -99,6 +101,16 @@ const closeDialog = () => { currentComponent.value = null; dialogShown.value = false; }; + +function handleRestore() { + creatorProfileStore.restoreCreatorPage(); + restoreDialogShown.value = false; +} + +function handleDelete() { + creatorProfileStore.removeCreatorPage(); + deleteDialogShown.value = false; +}