Skip to content

Commit

Permalink
fix: files compact view in person card (#2597)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mnickii committed Jul 11, 2023
1 parent 7ba98e4 commit 6985717
Showing 1 changed file with 1 addition and 4 deletions.
Expand Up @@ -80,7 +80,7 @@ registerFluentComponents(fluentProgressRing);

@customElement('file-list')
export class MgtFileList extends MgtTemplatedComponent implements CardSection {
private _isCompact = false;
@state() private _isCompact = false;
/**
* Array of styles to apply to the element. The styles should be defined
* using the `css` tag function.
Expand Down Expand Up @@ -554,7 +554,6 @@ export class MgtFileList extends MgtTemplatedComponent implements CardSection {
*/
protected clearState(): void {
super.clearState();
this._isCompact = false;
this.files = null;
}

Expand All @@ -566,7 +565,6 @@ export class MgtFileList extends MgtTemplatedComponent implements CardSection {
*/
public asCompactView() {
this._isCompact = true;
this.requestUpdate();
return this;
}

Expand All @@ -578,7 +576,6 @@ export class MgtFileList extends MgtTemplatedComponent implements CardSection {
*/
public asFullView() {
this._isCompact = false;
this.requestUpdate();
return this;
}

Expand Down

0 comments on commit 6985717

Please sign in to comment.