mirror of
				https://github.com/mealie-recipes/mealie.git
				synced 2025-11-03 18:53:17 -05:00 
			
		
		
		
	feature/editor-improvements (#289)
* pin editor buttons on scroll * scaler scratch * fix langauge assignment 1st pass * set lang on navigate * refactor/breakup router * unify style for language selectro * refactor/code-cleanup * refactor/page specific components to page folder * Fix time card layout issue * fix timecard display * update mobile cards / fix overflow errors Co-authored-by: hay-kot <hay-kot@pm.me>
This commit is contained in:
		@@ -1,5 +1,6 @@
 | 
			
		||||
import { baseURL } from "./api-utils";
 | 
			
		||||
import { apiReq } from "./api-utils";
 | 
			
		||||
import { store } from "@/store";
 | 
			
		||||
 | 
			
		||||
const settingsBase = baseURL + "site-settings";
 | 
			
		||||
 | 
			
		||||
@@ -11,7 +12,7 @@ const settingsURLs = {
 | 
			
		||||
  customPage: id => `${settingsBase}/custom-pages/${id}`,
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
export const siteSettingsAPI =  {
 | 
			
		||||
export const siteSettingsAPI = {
 | 
			
		||||
  async get() {
 | 
			
		||||
    let response = await apiReq.get(settingsURLs.siteSettings);
 | 
			
		||||
    return response.data;
 | 
			
		||||
@@ -19,6 +20,7 @@ export const siteSettingsAPI =  {
 | 
			
		||||
 | 
			
		||||
  async update(body) {
 | 
			
		||||
    let response = await apiReq.put(settingsURLs.updateSiteSettings, body);
 | 
			
		||||
    store.dispatch("requestSiteSettings");
 | 
			
		||||
    return response.data;
 | 
			
		||||
  },
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user