+
@@ -73,7 +75,6 @@ const route = useRoute();
const router = useRouter();
const userStore = useUserStore();
let pageError = ref(200);
-const pageLoading = ref(false);
const authors = ref({});
const attachments = ref([]);
const pageHeading = route.params.id ? "Edit Article" : "Create Article";
@@ -136,7 +137,7 @@ const updateSlug = async () => {
const loadData = async () => {
try {
if (route.params.id) {
- pageLoading.value = true;
+ form.loading(true);
let result = await api.get({
url: "/articles/{id}",
params: {
@@ -172,7 +173,7 @@ const loadData = async () => {
} catch (error) {
pageError.value = error.status;
} finally {
- pageLoading.value = false;
+ form.loading(false);
}
};
diff --git a/resources/js/views/dashboard/EventEdit.vue b/resources/js/views/dashboard/EventEdit.vue
index 6a794ff..14b5ff5 100644
--- a/resources/js/views/dashboard/EventEdit.vue
+++ b/resources/js/views/dashboard/EventEdit.vue
@@ -23,28 +23,32 @@
}" />