Skip to content

Commit

Permalink
Type Sidebar (#206)
Browse files Browse the repository at this point in the history
* Type sidebar file

* Update document.d.ts
  • Loading branch information
jeffdaley committed Jun 9, 2023
1 parent fb56ae2 commit d5d0d96
Show file tree
Hide file tree
Showing 4 changed files with 130 additions and 133 deletions.
2 changes: 1 addition & 1 deletion web/app/components/document/index.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<Document::Sidebar
@profile={{this.authenticatedUser.info}}
@document={{@document}}
@deleteDraft={{this.deleteDraft}}
@deleteDraft={{perform this.deleteDraft}}
@docType={{@docType}}
/>

Expand Down
58 changes: 1 addition & 57 deletions web/app/components/document/sidebar.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -313,64 +313,8 @@
</div>
</div>

{{!-- <div class="flex flex-col items-start space-y-2 px-3">
<small class="hds-typography-body-100 hds-foreground-faint">Tags</small>
{{#if this.isOwner}}
<EditableField
@value={{this.tags}}
@onChange={{perform this.save "tags"}}
@loading={{this.save.isRunning}}
>
<:default>
{{#if this.tags.length}}
<ol>
{{#each this.tags as |tag|}}
<li>
<FlightIcon
@name="tag"
@color="var(--token-color-palette-neutral-500)"
/>
{{tag}}
</li>
{{/each}}
</ol>
{{else}}
<em>No tags</em>
{{/if}}
</:default>
<:editing as |F|>
<Inputs::TagSelect
class="multiselect--narrow"
@selected={{this.tags}}
@onChange={{this.updateTags}}
{{click-outside (fn F.update this.tags)}}
/>
</:editing>
</EditableField>
{{else}}
{{#if this.tags.length}}
<ol>
{{#each this.tags as |tag|}}
<li>
<FlightIcon
@name="tag"
@color="var(--token-color-palette-neutral-500)"
/>
{{tag}}
</li>
{{/each}}
</ol>
{{else}}
<em>No tags</em>
{{/if}}
{{/if}}
</div> --}}

{{#if this.userHasEditPrivileges}}
<div
class="sidebar-footer
{{if this.editingIsDisabled 'locked'}}"
>
<div class="sidebar-footer {{if this.editingIsDisabled 'locked'}}">
{{#if this.editingIsDisabled}}
<div class="px-3 -mb-1">
<div class="w-full pt-3.5 border-t border-color-border-primary">
Expand Down
Loading

0 comments on commit d5d0d96

Please sign in to comment.