We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
Dashboard custom page login after reload the page, dashboard related api url called but token not set.
How we can handle this ?
The text was updated successfully, but these errors were encountered:
Hi. Please provide more details.
Sorry, something went wrong.
Thanks for reply
Dashboard page, i implemented by directive.
Sample code :
admin.menu(nga.menu() .addChild(nga.menu().title("dashboard").icon('').link('/dashboard'))
var dashboardTpl = '
ngapp.directive('dashboardSummary', ['$location', '$state', '$http', function ($location, $state, $http) { return { restrict: 'E', scope: { entity: "&", entityName: "@", entry: "&", size: "@", label: "@", revenueDetails: "&" }, templateUrl: '../ag-admin/tpl/dashboardSummary.tpl.html', link: function (scope) { scope.rangeVal = [{ "key": "lastDays", "value": "Last 7 Days" }, { "key": "lastWeeks", "value": "Last 4 Weeks" }, { "key": "lastMonths", "value": "Last 3 Months" }, { "key": "lastYears", "value": "Last 3 Years" }]; if (scope.rangeText === undefined) { scope.rangeText = "Last 7 Days"; } scope.selectedRangeItem = function (rangeVal, rangeText) { $http.get(admin_api_url + '/api/admin/stats', { params: { filter: rangeVal } }).success(function (response) { scope.adminstats = response; scope.rangeText = rangeText; }); }; $http.get(admin_api_url + '/api/admin/stats').success(function (response) { scope.adminstats = response; }); $http.get(admin_api_url + '/api/admin/activities').success(function (response) { scope.adminactivities = response; }); $http.get(admin_api_url + '/api/admin/settings/site.version/show').success(function (response) { scope.siteversion = response.settings[0]; }); } }; }]);
No branches or pull requests
Hi,
Dashboard custom page login after reload the page, dashboard related api url called but token not set.
How we can handle this ?
The text was updated successfully, but these errors were encountered: