1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-18 17:23:37 +00:00

[Typecript] Convert current (#372)

* Convert current controller to component.

* Remove unessesary $ctrl.loaded checks.

* Fix bindings for callbacks.

* Re-format html.

* Add UtilService interface to current component.

* Set sucessfully to boolean, change setTimeout to $timeout.
This commit is contained in:
Oscar Hinton
2017-11-14 19:44:34 +01:00
committed by Kyle Spearrin
parent 0c8dc0c3ec
commit c6c8042ecf
9 changed files with 230 additions and 193 deletions

View File

@@ -9,11 +9,11 @@ class CipherItemsController implements ng.IController {
}
view(cipher: any) {
return this.onView()(cipher);
return this.onView({cipher});
}
select(cipher: any) {
return this.onSelected()(cipher);
return this.onSelected({cipher});
}
}