1
0
Fork 0
mirror of https://github.com/mealie-recipes/mealie.git synced 2025-08-04 21:15:22 +02:00

Fixed spelling of availible

Sorry about all the small changes across lots of files, I think it would be best to fix this though to avoid potential future confusion.
This commit is contained in:
mtoohey31 2021-01-03 15:16:16 -05:00
parent 7e5ba43ac0
commit 5c59400a5d
6 changed files with 13 additions and 13 deletions

View file

@ -6,7 +6,7 @@ const backupBase = baseURL + "backups/";
const backupURLs = {
// Backup
avaiable: `${backupBase}avaiable/`,
available: `${backupBase}available/`,
createBackup: `${backupBase}export/database/`,
importBackup: (fileName) => `${backupBase}${fileName}/import/`,
deleteBackup: (fileName) => `${backupBase}${fileName}/delete/`,
@ -14,7 +14,7 @@ const backupURLs = {
export default {
async requestAvailable() {
let response = await apiReq.get(backupURLs.avaiable);
let response = await apiReq.get(backupURLs.available);
return response.data;
},

View file

@ -21,7 +21,7 @@
<v-form ref="form" lazy-validation>
<v-select
label="Saved Color Schemes"
:items="avaiableThemes"
:items="availableThemes"
item-text="name"
item-value="colors"
return-object
@ -95,13 +95,13 @@ export default {
themes: null,
activeTheme: {},
darkMode: false,
avaiableThemes: [],
availableThemes: [],
selectedScheme: "",
selectedLight: "",
};
},
async mounted() {
this.avaiableThemes = await api.themes.requestAll();
this.availableThemes = await api.themes.requestAll();
this.darkMode = this.$store.getters.getDarkMode;
this.themes = this.$store.getters.getThemes;
this.setThemeEditor();
@ -115,12 +115,12 @@ export default {
} else if (this.selectedScheme !== "") {
api.themes.delete(this.selectedScheme.name);
}
this.avaiableThemes = await api.themes.requestAll();
this.availableThemes = await api.themes.requestAll();
}
},
async appendTheme(newTheme) {
api.themes.create(newTheme);
this.avaiableThemes.push(newTheme);
this.availableThemes.push(newTheme);
},
themeSelected() {
this.activeTheme = this.selectedScheme.colors;

View file

@ -5,7 +5,7 @@
<v-card-title class="headline"> Choose a Recipe </v-card-title>
<v-card-text>
<v-autocomplete
:items="avaiableRecipes"
:items="availableRecipes"
v-model="selected"
clearable
return
@ -85,7 +85,7 @@ export default {
},
computed: {
avaiableRecipes() {
availableRecipes() {
return this.$store.getters.getRecentRecipes;
},
},