eca0e7bf56
* button styles * Further styles including global toggle adjustment * sidebar funcs and header * Functioning task logs in high-level sidebars * same-lineify the show tasks toggle * Changelog * Full-height sidebar calc in css, plz drop soon container queries * Active status and query params for allocations page * Reactive shouldShowLogs getter and added to client and task group pages * Higher order func passing, thanks @DingoEatingFuzz * Non-service job types get allocation params passed * Keyframe animation for task log sidebar * Acceptance test * A few more sub-row tests * Lintfix
44 lines
856 B
Handlebars
44 lines
856 B
Handlebars
<Portal @target="log-sidebar-portal">
|
|
<div
|
|
class="sidebar task-context-sidebar has-subnav {{if this.isSideBarOpen "open"}}"
|
|
{{on-click-outside
|
|
@fns.closeSidebar
|
|
capture=true
|
|
}}
|
|
>
|
|
{{#if @task}}
|
|
{{keyboard-commands this.keyCommands}}
|
|
<header>
|
|
<h1 class="title">
|
|
{{@task.name}}
|
|
<span class="state {{@task.state}}">
|
|
{{@task.state}}
|
|
</span>
|
|
</h1>
|
|
<LinkTo
|
|
class="link"
|
|
title={{@task.name}}
|
|
@route="allocations.allocation.task"
|
|
@models={{array @task.allocation @task}}
|
|
>
|
|
Go to Task page
|
|
</LinkTo>
|
|
<button
|
|
class="button close is-borderless"
|
|
type="button"
|
|
{{on "click" @fns.closeSidebar}}
|
|
>
|
|
{{x-icon "cancel"}}
|
|
</button>
|
|
</header>
|
|
|
|
<TaskLog
|
|
@allocation={{@task.allocation}}
|
|
@task={{@task.name}}
|
|
@shouldFillHeight={{false}}
|
|
/>
|
|
|
|
|
|
{{/if}}
|
|
</div>
|
|
</Portal> |