web/admin: fix requests on API Drawer vanishing when the drawer is closed

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-08-08 15:17:06 +02:00
parent 3367b83368
commit 1781ab59ba
1 changed files with 13 additions and 10 deletions

View File

@ -60,6 +60,9 @@ export class AdminInterface extends LitElement {
.pf-c-page__drawer {
z-index: auto !important;
}
.display-none {
display: none;
}
`,
];
}
@ -111,16 +114,16 @@ export class AdminInterface extends LitElement {
</main>
</div>
</div>
${this.notificationOpen
? html`<ak-notification-drawer
class="pf-c-drawer__panel pf-m-width-33"
></ak-notification-drawer>`
: html``}
${this.apiDrawerOpen
? html`<ak-api-drawer
class="pf-c-drawer__panel pf-m-width-33"
></ak-api-drawer>`
: html``}
<ak-notification-drawer
class="pf-c-drawer__panel pf-m-width-33 ${this.notificationOpen
? "display-none"
: ""}"
></ak-notification-drawer>
<ak-api-drawer
class="pf-c-drawer__panel pf-m-width-33 ${this.apiDrawerOpen
? "display-none"
: ""}"
></ak-api-drawer>
</div>
</div>
</div>