Skip to content
This repository has been archived by the owner on Oct 2, 2019. It is now read-only.

Commit

Permalink
Clean up AutocompleteItem interface (#296)
Browse files Browse the repository at this point in the history
* build: upgrade @knora/core

* enhancement (user form): remove interface AutocompleteItem and update paths

* build: upgrade @knora/core and @knora/action

* test: fix timeout issue

* build: update version @knora modules

* fix: update list type to ListNodeInfo
  • Loading branch information
Flavie L authored Oct 26, 2018
1 parent 2d87aeb commit 63e3895
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 15 deletions.
10 changes: 0 additions & 10 deletions src/app/app.interfaces.ts

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ describe('SystemProjectsComponent', () => {
let component: SystemProjectsComponent;
let fixture: ComponentFixture<SystemProjectsComponent>;


let originalTimeout;

beforeEach(function () {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,17 @@ describe('EditResourceClassComponent', () => {
let component: EditResourceClassComponent;
let fixture: ComponentFixture<EditResourceClassComponent>;

let originalTimeout;

beforeEach(function () {
originalTimeout = jasmine.DEFAULT_TIMEOUT_INTERVAL;
jasmine.DEFAULT_TIMEOUT_INTERVAL = 10000;
});

afterEach(function () {
jasmine.DEFAULT_TIMEOUT_INTERVAL = originalTimeout;
});

beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [
Expand Down
3 changes: 1 addition & 2 deletions src/app/view/modules/form/user-form/user-form.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ import { FormBuilder, FormControl, FormGroup, Validators } from '@angular/forms'
import { Observable } from 'rxjs';
import { startWith, map } from 'rxjs/operators';

import { ApiServiceError, KnoraConstants, Project, User, UsersService, Utils } from '@knora/core';
import { AutocompleteItem } from '../../../../app.interfaces';
import { ApiServiceError, AutocompleteItem, KnoraConstants, Project, User, UsersService, Utils } from '@knora/core';

@Component({
selector: 'salsah-user-form',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@
* */

import { Component, EventEmitter, Input, OnChanges, OnInit, Output } from '@angular/core';
import { AutocompleteItem } from '../../../../../app.interfaces';
import { FormBuilder, FormControl, FormGroup, Validators } from '@angular/forms';
import { ApiServiceError, Group, GroupsService, KnoraConstants, Project, ProjectsService, User } from '@knora/core';
import { ApiServiceError, AutocompleteItem, Group, GroupsService, KnoraConstants, Project, ProjectsService, User } from '@knora/core';

@Component({
selector: 'salsah-user-role',
Expand Down

0 comments on commit 63e3895

Please sign in to comment.