Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 1 addition & 8 deletions dashboard/public/components/main-page.css
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,6 @@ app-drawer-layout[narrow] #MainDrawer {
}
}

app-drawer-layout[bleed] #MainDrawer {
background: var(--primary-background-color);
--app-drawer-content-container: {
background: transparent !important;
}
}

#PageLoader {
@apply --layout-fullbleed;
@apply --layout-center-center;
Expand Down Expand Up @@ -107,7 +100,7 @@ app-drawer-layout[bleed] #MainDrawer {
}

#MainDrawer .inner-menu-item {
padding-left: 65px;
padding-left: 60px;
margin: 0;
font-size: 13px;
min-height: 30px;
Expand Down
11 changes: 10 additions & 1 deletion dashboard/public/components/main-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,16 @@ export class MainPage extends utilitiesMixin(PolymerElement) {
}

_toggleMenuSection(e) {
e.target.nextElementSibling.toggle();
// look upwards until we find <paper-item>
let el = e.target;
while (el && el.tagName !== 'PAPER-ITEM') {
el = el.parentElement;
}

// if we found paper-item, the next sibling is the section
if (el) {
el.nextElementSibling.toggle();
}
}

/**
Expand Down
10 changes: 7 additions & 3 deletions dashboard/public/components/main-page.pug
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ app-drawer-layout.flex(narrow='{{narrowMode}}',
iron-collapse
template(is='dom-repeat', items='[[item.items]]')
iframe-link(href$="[[_buildHref(item.link, queryParams.*)]]")
paper-item.menu-item.inner-menu-item [[item.text]]
paper-item.menu-item.inner-menu-item
| [[item.text]]
template(is='dom-if', if='[[!equals(item.type, "section")]]')
iframe-link(href$="[[_buildHref(item.link, queryParams.*)]]")
paper-item.menu-item
Expand All @@ -49,18 +50,21 @@ app-drawer-layout.flex(narrow='{{narrowMode}}',
paper-item.menu-item
iron-icon(icon='[[item.icon]]')
| [[item.text]]
iron-icon.external(icon="launch")
template(is='dom-if', if='[[equals(isolationMode, "multi-user")]]')
aside.divider
a(href$='[[_buildHref("/manage-users", queryParams.*)]]', tabindex='-1')
paper-item.menu-item#contributors Manage Contributors
aside.divider
a(href='https://www.deploykf.org/',
tabindex='-1', target="_blank")
paper-item.menu-item deployKF Website
paper-item.menu-item
| deployKF Website
iron-icon.external(icon="launch")
a(href='https://github.com/deployKF/deployKF',
tabindex='-1', target="_blank")
paper-item.menu-item deployKF GitHub
paper-item.menu-item
| deployKF GitHub
iron-icon.external(icon="launch")
app-header-layout(fullbleed)
app-header(slot='header', hides, hidden$='[[notFoundInIframe]]')
Expand Down