diff --git a/src/assets/scss/themes/layouts/_style-dark.scss b/src/assets/scss/themes/layouts/_style-dark.scss index e88e51d..bd4e14d 100644 --- a/src/assets/scss/themes/layouts/_style-dark.scss +++ b/src/assets/scss/themes/layouts/_style-dark.scss @@ -6,6 +6,8 @@ --bs-body-bg: #{$dark-layout-color}; --bs-body-bg-rgb: #{to-rgb($dark-layout-color)}; --pc-heading-color: rgba(255, 255, 255, 0.8); + + // Navbar --pc-sidebar-background: #1D2630; @@ -13,6 +15,7 @@ --pc-sidebar-color-rgb: #{to-rgb(#FFFFFF)}; --pc-sidebar-submenu-border-color: var(--bs-gray-600); --pc-sidebar-caption-color: #748892; + --vs-text-color: #18181b; // header --pc-header-background: rgba(#{var(--bs-body-bg-rgb)}, 0.7); diff --git a/src/components/customSidebar.vue b/src/components/customSidebar.vue index 3f4e425..fd6d81d 100644 --- a/src/components/customSidebar.vue +++ b/src/components/customSidebar.vue @@ -405,7 +405,7 @@ export default { -
  • +
  • { + .then(() => { setTimeout(() => { - document.getElementById("close").click(); - emit("brand-updated"); - }, 500); + document.getElementById("close").click(); + emit("brand-updated"); + title.value = ""; + description.value = ""; + image.value = null; + imagePreview.value = null; + }, 500); }) .catch((error) => { console.error(error); toast.error("!مشکلی در ایجاد برند پیش آمد", { position: "top-right", - autoClose: 1000 - + autoClose: 1000, }); }) .finally(() => { diff --git a/src/components/modals/addUser.vue b/src/components/modals/addUser.vue index 60ea23b..f85db7d 100644 --- a/src/components/modals/addUser.vue +++ b/src/components/modals/addUser.vue @@ -202,6 +202,11 @@ export default { position: "top-right", autoClose: 1000, }); + mobile.value = ""; + name.value = ""; + role.value = ""; + password.value = ""; + repeatPassword.value = ""; }) .then(() => { setTimeout(() => { diff --git a/src/components/modals/attribute/addAttribute.vue b/src/components/modals/attribute/addAttribute.vue index ff7a079..5a17339 100644 --- a/src/components/modals/attribute/addAttribute.vue +++ b/src/components/modals/attribute/addAttribute.vue @@ -165,6 +165,8 @@ export default { setTimeout(() => { document.getElementById("close").click(); emit("attribute-updated"); + colorName.value = ""; + colorCode.value = ""; }, 500); }) .catch((error) => { diff --git a/src/components/modals/blogCat/addBlogCat.vue b/src/components/modals/blogCat/addBlogCat.vue index c243950..dbfe10e 100644 --- a/src/components/modals/blogCat/addBlogCat.vue +++ b/src/components/modals/blogCat/addBlogCat.vue @@ -160,6 +160,8 @@ export default { setTimeout(() => { document.getElementById("closeAddBlogCat").click(); emit("cat-updated"); + title.value = ""; + selectedIcon.value = ""; }, 500); }) .catch((error) => { diff --git a/src/components/modals/categories/addCat.vue b/src/components/modals/categories/addCat.vue index fc40178..7012d7a 100644 --- a/src/components/modals/categories/addCat.vue +++ b/src/components/modals/categories/addCat.vue @@ -101,8 +101,11 @@
    -