mirror of
				https://github.com/mealie-recipes/mealie.git
				synced 2025-11-03 18:53:17 -05:00 
			
		
		
		
	More localization (#358)
* Translate missing items on About page * Localize import summary dialog * Make site menu translation reactive * Localize import options * Include semi colon in string * Move API texts to frontend + better status codes * Provide feedback to user when no meal is planned * Fix API tests after latest rework * Add warning for API changes in changelog * Refactor API texts handling * Refactor API texts handling #2 * Better API feedback * Rearrange strings hierarchy * Add messages upon recipe updated * Fix 'recipe effected' typo * Remove snackbar usage in backend * Translate toolbox * Provide feedback for tags CRUD * Fix messed up merge * Translate sign-up form * Better feedback for sign-up CRUD * Refactor log-in API texts handling * No error message when user is not authenticated * Remove unimportant console log
This commit is contained in:
		@@ -1,7 +1,7 @@
 | 
			
		||||
<template>
 | 
			
		||||
  <v-card outlined class="mt-n1">
 | 
			
		||||
    <ConfirmationDialog
 | 
			
		||||
      ref="deleteUserDialog"
 | 
			
		||||
      ref="deleteTokenDialog"
 | 
			
		||||
      :title="$t('user.confirm-link-deletion')"
 | 
			
		||||
      :message="
 | 
			
		||||
        $t('user.are-you-sure-you-want-to-delete-the-link', {
 | 
			
		||||
@@ -9,7 +9,7 @@
 | 
			
		||||
        })
 | 
			
		||||
      "
 | 
			
		||||
      icon="mdi-alert"
 | 
			
		||||
      @confirm="deleteUser"
 | 
			
		||||
      @confirm="deleteToken"
 | 
			
		||||
      :width="450"
 | 
			
		||||
      @close="closeDelete"
 | 
			
		||||
    />
 | 
			
		||||
@@ -18,7 +18,7 @@
 | 
			
		||||
        mdi-link-variant
 | 
			
		||||
      </v-icon>
 | 
			
		||||
      <v-toolbar-title class="headine">
 | 
			
		||||
        {{ $t("user.sign-up-links") }}
 | 
			
		||||
        {{ $t("signup.sign-up-links") }}
 | 
			
		||||
      </v-toolbar-title>
 | 
			
		||||
 | 
			
		||||
      <v-spacer> </v-spacer>
 | 
			
		||||
@@ -181,9 +181,10 @@ export default {
 | 
			
		||||
      this.links = await api.signUps.getAll();
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    async deleteUser() {
 | 
			
		||||
      await api.signUps.deleteToken(this.activeId);
 | 
			
		||||
      this.initialize();
 | 
			
		||||
    async deleteToken() {
 | 
			
		||||
      if (await api.signUps.deleteToken(this.activeId)) {
 | 
			
		||||
        this.initialize();
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    editItem(item) {
 | 
			
		||||
@@ -197,7 +198,7 @@ export default {
 | 
			
		||||
      this.activeName = item.name;
 | 
			
		||||
      this.editedIndex = this.links.indexOf(item);
 | 
			
		||||
      this.editedItem = Object.assign({}, item);
 | 
			
		||||
      this.$refs.deleteUserDialog.open();
 | 
			
		||||
      this.$refs.deleteTokenDialog.open();
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    deleteItemConfirm() {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user