Skip to content

Commit

Permalink
Merge pull request #472 from LeavittSoftware/fix-folder-renaming
Browse files Browse the repository at this point in the history
fix(leavitt-file-explorer): fix undefined apiService
  • Loading branch information
caldjoy committed Jun 30, 2023
2 parents 076fde5 + a5cf575 commit 89cad7e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/leavitt-file-explorer/src/leavitt-folder-modal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@ import './leavitt-folder-detail';

import { FileExplorerFolderDto } from '@leavittsoftware/lg-core-typescript/api3.leavitt.com';
import fileExplorerEvents from './file-explorer-events';
import ApiService from '@leavittsoftware/api-service/lib/api-service';

@customElement('leavitt-folder-modal')
export class LeavittFolderModalElement extends LitElement {
@property({ type: Boolean }) enableEditing: boolean = false;
@property({ attribute: false }) apiService: ApiService | null;

@state() protected state: 'view' | 'edit' = 'view';
@state() protected folder: FileExplorerFolderDto | null = null;
Expand Down Expand Up @@ -61,6 +63,7 @@ export class LeavittFolderModalElement extends LitElement {
: html`
<leavitt-folder-edit
.folder=${this.folder}
.apiService=${this.apiService}
@save-click=${() => (this.state = 'view')}
@cancel-click=${() => (this.state = 'view')}
></leavitt-folder-edit>
Expand Down

0 comments on commit 89cad7e

Please sign in to comment.