11
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
<script setup>
|
||||
import { onMounted, ref } from "vue";
|
||||
import { useAuthStore } from "../../stores/auth.js";
|
||||
import AdminImageUpload from "../../components/admin/AdminImageUpload.vue";
|
||||
import AdminImageUpload from "../../components/oem/OemImageUpload.vue";
|
||||
import {
|
||||
loadAdminAppBrandingApi,
|
||||
saveAdminAppBrandingApi,
|
||||
} from "../../api/adminAppBranding.js";
|
||||
loadOemAppBrandingApi,
|
||||
saveOemAppBrandingApi,
|
||||
} from "../../api/oemAppBranding.js";
|
||||
|
||||
const auth = useAuthStore();
|
||||
|
||||
@@ -33,7 +33,7 @@ function onImageError(message) {
|
||||
async function loadSettings() {
|
||||
loading.value = true;
|
||||
feedback.value = { severity: "", message: "" };
|
||||
const res = await loadAdminAppBrandingApi(auth.token);
|
||||
const res = await loadOemAppBrandingApi(auth.token);
|
||||
loading.value = false;
|
||||
|
||||
if (!res.ok) {
|
||||
@@ -47,7 +47,7 @@ async function loadSettings() {
|
||||
async function saveSettings() {
|
||||
saving.value = true;
|
||||
feedback.value = { severity: "", message: "" };
|
||||
const res = await saveAdminAppBrandingApi(auth.token, form.value);
|
||||
const res = await saveOemAppBrandingApi(auth.token, form.value);
|
||||
saving.value = false;
|
||||
|
||||
if (!res.ok) {
|
||||
|
||||
Reference in New Issue
Block a user