Skip to content
Snippets Groups Projects
Commit ed6946aa authored by Jakob Junck's avatar Jakob Junck
Browse files

first real commit: added an dummy button

parent 79f1b436
No related branches found
No related tags found
No related merge requests found
...@@ -23,6 +23,14 @@ ...@@ -23,6 +23,14 @@
</div> </div>
</button> </button>
</li> </li>
<li>
<button class="button align-bottom" (click)="importOCEL()">
<div>
<i class="bi bi-upload btn-icon"></i>
<span><b>Import</b> OCEL</span>
</div>
</button>
</li>
<li> <li>
<button class="button align-bottom" (click)="importTreeFromPTML()"> <button class="button align-bottom" (click)="importTreeFromPTML()">
<div> <div>
...@@ -184,6 +192,15 @@ ...@@ -184,6 +192,15 @@
accept=".xes" accept=".xes"
/> />
<!-- TODO: Change Accept Format -->
<input
#fileUploadOCEL
type="file"
class="d-none"
(change)="handleSelectedEventLogFile($event, false)"
accept=".xes"
/>
<input <input
#fileUploadProcessTree #fileUploadProcessTree
type="file" type="file"
......
...@@ -26,6 +26,7 @@ import { LogExportService } from 'src/app/services/logExportService/log-export.s ...@@ -26,6 +26,7 @@ import { LogExportService } from 'src/app/services/logExportService/log-export.s
}) })
export class HeaderBarComponent implements OnDestroy { export class HeaderBarComponent implements OnDestroy {
@ViewChild('fileUploadEventLog') fileUploadEventLog: ElementRef; @ViewChild('fileUploadEventLog') fileUploadEventLog: ElementRef;
@ViewChild('fileUploadOCEL') fileUploadOCEL: ElementRef;
@ViewChild('fileUploadProcessTree') fileUploadProcessTree: ElementRef; @ViewChild('fileUploadProcessTree') fileUploadProcessTree: ElementRef;
@ViewChild('fileUploadProject') fileUploadProject: ElementRef; @ViewChild('fileUploadProject') fileUploadProject: ElementRef;
@ViewChild('fileUploadEventLogRetry') fileUploadEventLogRetry: ElementRef; @ViewChild('fileUploadEventLogRetry') fileUploadEventLogRetry: ElementRef;
...@@ -73,6 +74,12 @@ export class HeaderBarComponent implements OnDestroy { ...@@ -73,6 +74,12 @@ export class HeaderBarComponent implements OnDestroy {
this.fileUploadEventLog.nativeElement.click(); this.fileUploadEventLog.nativeElement.click();
} }
//TODO: remove comments
importOCEL(): void {
console.log("We try to upload an OCEL, but nothing is yet implemented")
this.fileUploadOCEL.nativeElement.click();
}
handleSelectedEventLogFile(e, isRetry = false): void { handleSelectedEventLogFile(e, isRetry = false): void {
const fileList: FileList = e.target.files; const fileList: FileList = e.target.files;
if (fileList.length > 0) { if (fileList.length > 0) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment