diff --git a/public/akaunting-js/generalAction.js b/public/akaunting-js/generalAction.js
index 5a35ce460..ae3b9f0ef 100644
--- a/public/akaunting-js/generalAction.js
+++ b/public/akaunting-js/generalAction.js
@@ -290,4 +290,15 @@ function OnInput() {
this.style.height = 'auto';
this.style.height = (this.scrollHeight) + 'px';
}
-//Auto Height for Textarea
\ No newline at end of file
+//Auto Height for Textarea
+
+//Loading scenario for href links
+document.querySelectorAll('[data-link]').forEach((href) => {
+ href.addEventListener('click', function () {
+ this.classList.add('disabled-link');
+ this.querySelector('[data-link-loading]').classList.remove('hidden');
+ this.querySelector('[data-link-text]').classList.add('opacity-0');
+ this.querySelector('[data-link-text]').classList.remove('opacity-1');
+ });
+});
+//Loading scenario for href links
\ No newline at end of file
diff --git a/public/css/app.css b/public/css/app.css
index 07ee38b4c..5fa6b504e 100644
--- a/public/css/app.css
+++ b/public/css/app.css
@@ -35773,6 +35773,12 @@ html[dir='rtl'] .el-input__suffix {
text-overflow: unset;
}
+.disabled-link{
+ pointer-events: none;
+ cursor: default;
+ opacity: 0.5;
+}
+
@media only screen and (max-width: 480px) {
.small-table-width {
width: 450px;
diff --git a/resources/assets/sass/app.css b/resources/assets/sass/app.css
index 610fd9e42..2a2590f19 100644
--- a/resources/assets/sass/app.css
+++ b/resources/assets/sass/app.css
@@ -495,6 +495,10 @@ html[dir='rtl'] .el-input__suffix {
text-overflow: unset;
}
+.disabled-link {
+ @apply cursor-default pointer-events-none opacity-50;
+}
+
@media only screen and (max-width: 480px) {
.small-table-width {
width: 450px;
diff --git a/resources/views/components/layouts/modules/show/buttons.blade.php b/resources/views/components/layouts/modules/show/buttons.blade.php
index 12c1c69f7..fd755ede6 100644
--- a/resources/views/components/layouts/modules/show/buttons.blade.php
+++ b/resources/views/components/layouts/modules/show/buttons.blade.php
@@ -1,25 +1,33 @@
@props(['module', 'installed', 'enable'])
@if (! empty($module->plan))
-
- {{ trans('modules.get_premium_cloud') }}
+
+
+ {{ trans('modules.get_premium_cloud') }}
+
@elseif (in_array('onprime', $module->where_to_use))
@if ($installed)
@can('delete-modules-item')
-
- {{ trans('modules.button.uninstall') }}
+
+
+ {{ trans('modules.button.uninstall') }}
+
@endcan
@can('update-modules-item')
@if ($enable)
-
- {{ trans('modules.button.disable') }}
+
+
+ {{ trans('modules.button.disable') }}
+
@else
-
- {{ trans('modules.button.enable') }}
+
+
+ {{ trans('modules.button.enable') }}
+
@endif
@endcan
@@ -35,27 +43,36 @@
@else
@endif
@else
-
- {{ trans('modules.use_app') }}
+
+
+ {{ trans('modules.use_app') }}
+
@endif
@endcan
@endif
@else
@if ($module->install)
-
- {{ trans('modules.install_cloud') }}
+
+
+ {{ trans('modules.install_cloud') }}
+
@else
-
- {{ trans('modules.get_cloud') }}
+
+
+ {{ trans('modules.get_cloud') }}
+
@endif
@endif
diff --git a/resources/views/components/link/loading.blade.php b/resources/views/components/link/loading.blade.php
new file mode 100644
index 000000000..ea72d1152
--- /dev/null
+++ b/resources/views/components/link/loading.blade.php
@@ -0,0 +1,9 @@
+
+
+
+
+ {!! $slot !!}
+
\ No newline at end of file