Rename file-edit to tag-edit

Signed-off-by: trivernis <trivernis@protonmail.com>
pull/4/head
trivernis 3 years ago
parent 628d1d92ad
commit 0ee9d3791f

@ -25,7 +25,7 @@
</div>
</mat-tab>
<mat-tab *ngIf="this.selectedFiles.length > 0" label="Edit Tags">
<app-file-edit #fileedit [files]="this.selectedFiles"></app-file-edit>
<app-tag-edit #fileedit [files]="this.selectedFiles"></app-tag-edit>
</mat-tab>
</mat-tab-group>
</div>

@ -14,7 +14,7 @@ import {FileService} from "../../../../services/file/file.service";
import {File} from "../../../../models/File";
import {FileSearchComponent} from "../../../shared/sidebar/file-search/file-search.component";
import {RepositoryService} from "../../../../services/repository/repository.service";
import {FileEditComponent} from "../../../shared/sidebar/file-edit/file-edit.component";
import {TagEditComponent} from "../../../shared/sidebar/tag-edit/tag-edit.component";
import {clipboard} from "@tauri-apps/api";
@Component({
@ -29,7 +29,7 @@ export class FilesTabSidebarComponent implements OnInit, OnChanges {
@Output() searchEndEvent = new EventEmitter<void>();
@ViewChild("filesearch") fileSearch!: FileSearchComponent;
@ViewChild("fileedit") fileEdit: FileEditComponent | undefined;
@ViewChild("fileedit") fileEdit: TagEditComponent | undefined;
public tagsOfFiles: Tag[] = [];
public tags: Tag[] = [];

@ -4,7 +4,7 @@
<app-file-import (importFinished)="importFinished.emit($event)" (fileImported)="fileImported.emit($event)"></app-file-import>
</mat-tab>
<mat-tab label="Edit Tags" *ngIf="selectedFiles.length > 0">
<app-file-edit [files]="selectedFiles"></app-file-edit>
<app-tag-edit [files]="selectedFiles"></app-tag-edit>
</mat-tab>
</mat-tab-group>
</div>

@ -1,6 +1,6 @@
import {NgModule} from "@angular/core";
import {CommonModule} from "@angular/common";
import {FileEditComponent} from "./file-edit/file-edit.component";
import {TagEditComponent} from "./tag-edit/tag-edit.component";
import {FileSearchComponent} from "./file-search/file-search.component";
import {NgIconsModule} from "@ng-icons/core";
import {MatRemove, MatChangeCircle, MatAddCircle, MatRemoveCircle, MatDeleteSweep, MatFilterAlt} from "@ng-icons/material-icons";
@ -29,7 +29,7 @@ import {MatProgressBarModule} from "@angular/material/progress-bar";
@NgModule({
declarations: [
FileEditComponent,
TagEditComponent,
FileSearchComponent,
TagFilterListItemComponent,
SortDialogComponent,
@ -38,7 +38,7 @@ import {MatProgressBarModule} from "@angular/material/progress-bar";
FilesystemImportComponent,
],
exports: [
FileEditComponent,
TagEditComponent,
FileSearchComponent,
FileImportComponent
],

@ -1,20 +1,20 @@
import {ComponentFixture, TestBed} from "@angular/core/testing";
import {FileEditComponent} from "./file-edit.component";
import {TagEditComponent} from "./tag-edit.component";
describe("FileEditComponent", () => {
let component: FileEditComponent;
let fixture: ComponentFixture<FileEditComponent>;
let component: TagEditComponent;
let fixture: ComponentFixture<TagEditComponent>;
beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [FileEditComponent]
declarations: [TagEditComponent]
})
.compileComponents();
});
beforeEach(() => {
fixture = TestBed.createComponent(FileEditComponent);
fixture = TestBed.createComponent(TagEditComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});

@ -14,11 +14,11 @@ import {TagService} from "../../../../services/tag/tag.service";
import {FileService} from "../../../../services/file/file.service";
@Component({
selector: "app-file-edit",
templateUrl: "./file-edit.component.html",
styleUrls: ["./file-edit.component.scss"]
selector: "app-tag-edit",
templateUrl: "./tag-edit.component.html",
styleUrls: ["./tag-edit.component.scss"]
})
export class FileEditComponent implements OnInit, OnChanges {
export class TagEditComponent implements OnInit, OnChanges {
@Input() files: File[] = [];
public tags: Tag[] = [];
Loading…
Cancel
Save