Skip to content

Commit

Permalink
Whoops
Browse files Browse the repository at this point in the history
  • Loading branch information
MrPowerGamerBR committed Sep 1, 2023
1 parent 6b51715 commit 92686e5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class ArtistFanArtsView(
override fun rightSidebar(): FlowContent.() -> (Unit) = {
div {
id = "fan-arts-wrapper"

h1 {
text(fanArtArtist.name)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ abstract class DashboardView(

a(classes = "entry", href = "/${i18nContext.websiteLocaleIdPath}/fan-arts") {
attributes["hx-target"] = "#content"
attributes["power-close-sidebar"] = "true"

text(i18nContext.get(I18nKeysData.ViewAllFanArts(totalFanArtCount)))
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,17 @@ class GalleryOfDreamsFrontend {
leftSidebarMobileElement.addClass("is-open")
leftSidebarElement.removeClass("is-closed")
leftSidebarMobileElement.removeClass("is-closed")

isLeftSidebarOpen = true
}

private fun closeSidebar() {
leftSidebarElement.removeClass("is-open")
leftSidebarMobileElement.removeClass("is-open")
leftSidebarElement.addClass("is-closed")
leftSidebarMobileElement.addClass("is-closed")

isLeftSidebarOpen = false
}

private fun toggleSidebar() {
Expand All @@ -48,8 +52,6 @@ class GalleryOfDreamsFrontend {
} else {
closeSidebar()
}

isLeftSidebarOpen = !isLeftSidebarOpen
}

fun start() {
Expand Down

0 comments on commit 92686e5

Please sign in to comment.