Rebase to master when repo went private
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
.menu-chip{
|
||||
max-width: 100%;
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
<div class="col s10 package-height chip-padding package-item relative">
|
||||
<div class="chip pointer margin-right menu-chip truncate"
|
||||
[ngClass]="{'pink-button' : task.running, 'white-text' : task.running || task.failed || task.succeeded, 'orange' : task.failed, 'green' : task.succeeded}"
|
||||
mz-tooltip [tooltip]="task.running ? 'This task is running' : task.failed ? 'This task has failed' : task.succeeded ? 'This task succeeded' : 'This task is waiting'"
|
||||
position="bottom" [innerHTML]="'<i class=material-icons>' + task.icon + '</i>' + task.status">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col s2 package-height centered package-item">
|
||||
<i *ngIf="task.status === 'Waiting...'||(task.running&&!task.succeeded&&!task.failed)" class="material-icons red-text cursor settings" (click)="task.running?processService.skipCurrent(task):deleteItem()">close</i>
|
||||
</div>
|
||||
@@ -0,0 +1,24 @@
|
||||
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { CurrentTaskItemComponent } from './current-task-item.component';
|
||||
|
||||
describe('CurrentTaskItemComponent', () => {
|
||||
let component: CurrentTaskItemComponent;
|
||||
let fixture: ComponentFixture<CurrentTaskItemComponent>;
|
||||
|
||||
beforeEach(async(() => {
|
||||
TestBed.configureTestingModule({
|
||||
declarations: [CurrentTaskItemComponent],
|
||||
}).compileComponents();
|
||||
}));
|
||||
|
||||
beforeEach(() => {
|
||||
fixture = TestBed.createComponent(CurrentTaskItemComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,18 @@
|
||||
import { Component, Input, OnInit } from '@angular/core';
|
||||
import { ProcessBucketService } from '../process-bucket.service';
|
||||
|
||||
@Component({
|
||||
selector: 'app-current-task-item',
|
||||
templateUrl: './current-task-item.component.html',
|
||||
styleUrls: ['./current-task-item.component.css'],
|
||||
})
|
||||
export class CurrentTaskItemComponent implements OnInit {
|
||||
@Input() task;
|
||||
constructor(private processService: ProcessBucketService) {}
|
||||
|
||||
ngOnInit() {}
|
||||
|
||||
deleteItem() {
|
||||
this.processService.tasks = this.processService.tasks.filter(t => t !== this.task);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user