Merge branch 'master' of https://github.com/brkcvn/akaunting into left-menu-toggle
This commit is contained in:
commit
cbdcecabbb
@ -58,6 +58,7 @@
|
||||
function contentTransitionLeft() {
|
||||
sectionContent.classList.add("xl:ltr:ml-0", "xl:rtl:mr-0");
|
||||
sectionContent.classList.remove("xl:ltr:ml-64", "xl:rtl:mr-64");
|
||||
|
||||
toggleButton.querySelector("span").classList.add("ltr:-rotate-90", "rtl:rotate-90");
|
||||
}
|
||||
|
||||
@ -65,16 +66,19 @@
|
||||
function contentTransitionRight() {
|
||||
sectionContent.classList.remove("xl:ltr:ml-0", "xl:rtl:mr-0");
|
||||
sectionContent.classList.add("xl:ltr:ml-64", "xl:rtl:mr-64");
|
||||
|
||||
toggleButton.querySelector("span").classList.remove("ltr:-rotate-90", "rtl:rotate-90");
|
||||
}
|
||||
|
||||
function hiddenSidebar() {
|
||||
sideBar.classList.add("menu-list-hidden");
|
||||
|
||||
toggleButton.classList.add("ltr:left-12", "rtl:right-12");
|
||||
}
|
||||
|
||||
function unHiddenSidebar() {
|
||||
toggleButton.classList.remove("ltr:left-12", "rtl:right-12");
|
||||
|
||||
sideBar.classList.remove("menu-list-hidden");
|
||||
}
|
||||
|
||||
@ -147,6 +151,7 @@
|
||||
|
||||
menu.classList.remove("ltr:-left-80", "rtl:-right-80");
|
||||
menu.classList.add("ltr:left-14", "rtl:right-14");
|
||||
|
||||
mainContent.classList.add("hidden");
|
||||
toggleButton.classList.add("invisible");
|
||||
menuClose.classList.remove("hidden");
|
||||
@ -163,7 +168,9 @@
|
||||
sectionContent.classList.add("xl:ltr:ml-64", "xl:rtl:mr-64");
|
||||
//for hidden menu, show close icon scenario
|
||||
|
||||
notificationCount("none");
|
||||
if (menuRef === "notifications-menu") {
|
||||
notificationCount("none");
|
||||
}
|
||||
|
||||
//remove active (cancel text) class form target icon
|
||||
} else if (menu.classList.contains(menuRef) && iconButton.children[0].textContent == "cancel") {
|
||||
@ -172,6 +179,7 @@
|
||||
|
||||
menu.classList.add("ltr:-left-80", "rtl:-right-80");
|
||||
menu.classList.remove("ltr:left-14", "rtl:right-14");
|
||||
|
||||
mainContent.classList.remove("hidden");
|
||||
toggleButton.classList.remove("invisible");
|
||||
menuClose.classList.add("hidden");
|
||||
@ -187,10 +195,13 @@
|
||||
menuClose.addEventListener("click", function() {
|
||||
menu.classList.add("ltr:-left-80", "rtl:-right-80");
|
||||
menu.classList.remove("ltr:left-14", "rtl:right-14");
|
||||
|
||||
iconButton.children[0].textContent = icon;
|
||||
iconButton.children[0].classList.remove("active");
|
||||
|
||||
mainContent.classList.remove("hidden");
|
||||
this.classList.add("hidden");
|
||||
|
||||
toggleButton.classList.remove("invisible");
|
||||
});
|
||||
});
|
||||
@ -210,6 +221,7 @@
|
||||
|
||||
profile_icon_html.children[0].classList.remove("hidden");
|
||||
profile_icon_html.children[1].classList.add("hidden");
|
||||
|
||||
toggleButton.classList.add("invisible");
|
||||
}
|
||||
|
||||
@ -223,6 +235,7 @@
|
||||
|
||||
settings_icon_html.children[0].textContent = "cancel";
|
||||
settings_icon_html.children[0].classList.add("active");
|
||||
|
||||
toggleButton.classList.add("invisible");
|
||||
}
|
||||
}
|
||||
|
@ -4,7 +4,7 @@
|
||||
<x-link
|
||||
href="{{ $module->action_url }}"
|
||||
target="_blank"
|
||||
class="relative bg-green hover:bg-green-700 rounded-md text-white text-sm text-center w-full py-2 truncate"
|
||||
class="bg-green hover:bg-green-700 rounded-md text-white text-sm text-center w-full py-2 truncate"
|
||||
override="class"
|
||||
>
|
||||
{{ trans('modules.get_premium_cloud') }}
|
||||
@ -14,7 +14,7 @@
|
||||
@can('delete-modules-item')
|
||||
<x-link
|
||||
href="{{ route('apps.app.uninstall', $module->slug) }}"
|
||||
class="relative bg-red rounded-md text-white text-sm text-center w-1/2 py-2 truncate"
|
||||
class="bg-red rounded-md text-white text-sm text-center w-1/2 py-2 truncate"
|
||||
override="class"
|
||||
>
|
||||
<x-link.loading>
|
||||
@ -37,7 +37,7 @@
|
||||
@else
|
||||
<x-link
|
||||
href="{{ route('apps.app.enable', $module->slug) }}"
|
||||
class="relative bg-green rounded-md text-white text-sm text-center w-1/2 py-2 truncate"
|
||||
class="bg-green rounded-md text-white text-sm text-center w-1/2 py-2 truncate"
|
||||
override="class"
|
||||
>
|
||||
<x-link.loading>
|
||||
@ -71,7 +71,7 @@
|
||||
<x-link
|
||||
href="{{ $module->action_url }}"
|
||||
target="_blank"
|
||||
class="relative bg-green hover:bg-green-700 rounded-md text-white text-sm text-center w-full py-2 truncate"
|
||||
class="bg-green hover:bg-green-700 rounded-md text-white text-sm text-center w-full py-2 truncate"
|
||||
override="class"
|
||||
>
|
||||
{{ trans('modules.use_app') }}
|
||||
@ -84,7 +84,7 @@
|
||||
<x-link
|
||||
href="{{ $module->action_url }}"
|
||||
target="_blank"
|
||||
class="relative bg-green hover:bg-green-700 rounded-md text-white text-sm text-center w-full py-2 truncate"
|
||||
class="bg-green hover:bg-green-700 rounded-md text-white text-sm text-center w-full py-2 truncate"
|
||||
override="class"
|
||||
>
|
||||
{{ trans('modules.install_cloud') }}
|
||||
@ -93,7 +93,7 @@
|
||||
<x-link
|
||||
href="{{ $module->action_url }}"
|
||||
target="_blank"
|
||||
class="relative bg-green hover:bg-green-700 rounded-md text-white text-sm text-center w-full py-2 truncate"
|
||||
class="bg-green hover:bg-green-700 rounded-md text-white text-sm text-center w-full py-2 truncate"
|
||||
override="class"
|
||||
>
|
||||
{{ trans('modules.get_cloud') }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user