Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hey,
I'm trying to create a dashboard in the backoffice. I can't get it to show med the user log.
I have this controller, but the getuserlog aint working
function dashboardController($scope, userService, logResource, usersResource) { var vm = this; vm.UserName = 'guest'; vm.UserEmail = "[email protected]"; vm.UserLogHistory = []; function init() { var user = userService.getCurrentUser().then(function (user) { vm.UserName = user.name; vm.UserEmail = user.email; }); logResource.getUserLog("save", new Date()) .then(function (log) { alert('its here!'); }); } init(); } angular.module("umbraco").controller("Cabana.DashboardController", dashboardController);
i'm getting this error: Image
Hi Thomas,
I don't know much about this method but can see there has been a bunch of work on it! https://github.com/umbraco/Umbraco-CMS/pull/2719
It looks like that method has been made obsolete around version 7.13, perhaps try with the paged version getPagedUserLog
https://github.com/umbraco/Umbraco-CMS/blob/f55e05da79ca827b192a03d6d1271501bced0b66/src/Umbraco.Web.UI.Client/src/common/resources/log.resource.js#L132
HTH, David
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Umbraco 8 backoffice user edit log
Hey,
I'm trying to create a dashboard in the backoffice. I can't get it to show med the user log.
I have this controller, but the getuserlog aint working
i'm getting this error: Image
Hi Thomas,
I don't know much about this method but can see there has been a bunch of work on it! https://github.com/umbraco/Umbraco-CMS/pull/2719
It looks like that method has been made obsolete around version 7.13, perhaps try with the paged version getPagedUserLog
https://github.com/umbraco/Umbraco-CMS/blob/f55e05da79ca827b192a03d6d1271501bced0b66/src/Umbraco.Web.UI.Client/src/common/resources/log.resource.js#L132
HTH, David
is working on a reply...