Merge pull request '#7323 redirect to lilium' (!2862) from 7323-warmfix-fixErrors into test
gitea/salix/pipeline/head This commit looks good Details

Reviewed-on: #2862
Reviewed-by: Alex Moreno <alexm@verdnatura.es>
This commit is contained in:
Alex Moreno 2024-08-14 10:07:58 +00:00
commit 9625a87abb
2 changed files with 4 additions and 1 deletions

View File

@ -38,7 +38,7 @@
</vn-icon-button>
</div>
<a
ui-sref="worker.card.summary({id: $root.user.id})"
ng-click="$ctrl.redirect($root.user.id)"
class="vn-button colored"
translate>
My account

View File

@ -82,6 +82,9 @@ class Controller {
? {id: $search}
: {bank: {like: '%' + $search + '%'}};
}
async redirect(id) {
window.location.href = await this.vnConfig.vnApp.getUrl(`worker/${id}`);
}
}
Controller.$inject = ['$scope', '$translate', 'vnConfig', 'vnAuth', 'vnToken'];