;
-
-
+ let isActionAllowedServiceSpy
+
beforeEach(waitForAsync(() => {
+ isActionAllowedServiceSpy = jasmine.createSpyObj("IsAllowedService", ["canUpdate", "canDelete"]);
+ isActionAllowedServiceSpy.tooltips = {update: '', delete: ''};
TestBed.configureTestingModule({
providers:[
{provide: LogbookInfoService, useClass: LogbookInfoMock},
@@ -65,4 +67,5 @@ describe('TodosComponent', () => {
it('should create', () => {
expect(component).toBeTruthy();
});
+
});
diff --git a/scilog/src/app/logbook/widgets/todos/todos.component.ts b/scilog/src/app/logbook/widgets/todos/todos.component.ts
index ed050f5f..691b5952 100644
--- a/scilog/src/app/logbook/widgets/todos/todos.component.ts
+++ b/scilog/src/app/logbook/widgets/todos/todos.component.ts
@@ -5,8 +5,6 @@ import { TasksService } from '@shared/tasks.service';
import { LogbookInfoService } from '@shared/logbook-info.service';
import { ChangeStreamService } from '@shared/change-stream.service';
import { Subscription } from 'rxjs';
-import { Basesnippets } from '@model/basesnippets';
-import { Logbooks } from '@model/logbooks';
import { ViewsService } from '@shared/views.service';
@Component({
@@ -35,7 +33,7 @@ export class TodosComponent implements OnInit {
ngOnInit(): void {
// get TODOs from server
- console.log("todo: adding subscriptions")
+ console.log("todo: adding subscriptions");
this.subscriptions.push(this.tasksService.currentTasks.subscribe(tasks => {
this.tasks = tasks;
this.numTasks = this.tasksService.numTasks;
diff --git a/scilog/src/app/overview/add-logbook/add-logbook.component.html b/scilog/src/app/overview/add-logbook/add-logbook.component.html
index 1759cca7..641b80fb 100644
--- a/scilog/src/app/overview/add-logbook/add-logbook.component.html
+++ b/scilog/src/app/overview/add-logbook/add-logbook.component.html
@@ -11,14 +11,14 @@
Title
-
+
Please specify the title.
Location (Beamline or Instrument)
-
+
{{ location?.location }}
@@ -36,7 +36,7 @@
ownerGroup
+ [formControl]="optionsFormGroup.get('ownerGroup')" matTooltip="{{ isActionAllowed.tooltips.ownerGroup }}">
Please specify the owner
group.
@@ -76,12 +76,12 @@
- private
+ private
Description
-
+
@@ -90,7 +90,7 @@
-