Fix resizing issues with filegrid and gallery
Signed-off-by: trivernis <trivernis@protonmail.com>pull/4/head
parent
c8cccf4500
commit
1956f2d0b0
@ -1,8 +1,8 @@
|
|||||||
<mat-drawer-container>
|
<mat-drawer-container autosize>
|
||||||
<mat-drawer disableClose="true" mode="side" opened>
|
<mat-drawer disableClose="true" mode="side" opened>
|
||||||
<app-import-tab-sidebar (fileImported)="this.addFileFromImport($event)" (importFinished)="this.refreshFileView()"></app-import-tab-sidebar>
|
<app-import-tab-sidebar (fileImported)="this.addFileFromImport($event)" (importFinished)="this.refreshFileView()"></app-import-tab-sidebar>
|
||||||
</mat-drawer>
|
</mat-drawer>
|
||||||
<mat-drawer-content>
|
<mat-drawer-content>
|
||||||
<app-file-grid [files]="this.files" ></app-file-grid>
|
<app-file-grid #fileGrid [files]="this.files" ></app-file-grid>
|
||||||
</mat-drawer-content>
|
</mat-drawer-content>
|
||||||
</mat-drawer-container>
|
</mat-drawer-container>
|
||||||
|
@ -0,0 +1,16 @@
|
|||||||
|
import { TestBed } from '@angular/core/testing';
|
||||||
|
|
||||||
|
import { TabService } from './tab.service';
|
||||||
|
|
||||||
|
describe('TabService', () => {
|
||||||
|
let service: TabService;
|
||||||
|
|
||||||
|
beforeEach(() => {
|
||||||
|
TestBed.configureTestingModule({});
|
||||||
|
service = TestBed.inject(TabService);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should be created', () => {
|
||||||
|
expect(service).toBeTruthy();
|
||||||
|
});
|
||||||
|
});
|
@ -0,0 +1,15 @@
|
|||||||
|
import { Injectable } from '@angular/core';
|
||||||
|
import {BehaviorSubject} from "rxjs";
|
||||||
|
|
||||||
|
@Injectable({
|
||||||
|
providedIn: 'root'
|
||||||
|
})
|
||||||
|
export class TabService {
|
||||||
|
|
||||||
|
public selectedTab = new BehaviorSubject<number>(0);
|
||||||
|
constructor() { }
|
||||||
|
|
||||||
|
public setSelectedTab(index: number) {
|
||||||
|
this.selectedTab.next(index);
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue