This commit is contained in:
parent
d9f64dea08
commit
cf39e944f0
|
@ -38,7 +38,7 @@
|
||||||
</vn-icon-button>
|
</vn-icon-button>
|
||||||
</div>
|
</div>
|
||||||
<a
|
<a
|
||||||
ui-sref="worker.card.summary({id: $root.user.id})"
|
ng-click="$ctrl.redirect($root.user.id)"
|
||||||
class="vn-button colored"
|
class="vn-button colored"
|
||||||
translate>
|
translate>
|
||||||
My account
|
My account
|
||||||
|
|
|
@ -82,6 +82,9 @@ class Controller {
|
||||||
? {id: $search}
|
? {id: $search}
|
||||||
: {bank: {like: '%' + $search + '%'}};
|
: {bank: {like: '%' + $search + '%'}};
|
||||||
}
|
}
|
||||||
|
async redirect(id) {
|
||||||
|
window.location.href = await this.vnConfig.vnApp.getUrl(`worker/${id}`);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Controller.$inject = ['$scope', '$translate', 'vnConfig', 'vnAuth', 'vnToken'];
|
Controller.$inject = ['$scope', '$translate', 'vnConfig', 'vnAuth', 'vnToken'];
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue