use sessionStorage & add user admin pages
This commit is contained in:
		@ -36,8 +36,8 @@ export function showTable(api, ps, cp) {
 | 
			
		||||
 | 
			
		||||
                    newCell.innerHTML = `<a href="#!">Order ${i.id}</a>`;
 | 
			
		||||
                    newCell.addEventListener("click", function (evt) {
 | 
			
		||||
                        // put the current_page into localStorage
 | 
			
		||||
                        localStorage.setItem("cur-page", data.current_page);
 | 
			
		||||
                        // put the current_page into sessionStorage
 | 
			
		||||
                        sessionStorage.setItem("cur-page", data.current_page);
 | 
			
		||||
 | 
			
		||||
                        // redirect
 | 
			
		||||
                        location.href = `/admin/sales/${i.id}`;
 | 
			
		||||
 | 
			
		||||
@ -34,8 +34,8 @@ export function showTable(api, ps, cp) {
 | 
			
		||||
 | 
			
		||||
                    newCell.innerHTML = `<a href="#!">Order ${i.id}</a>`;
 | 
			
		||||
                    newCell.addEventListener("click", function (evt) {
 | 
			
		||||
                        // put the current_page into localStorage
 | 
			
		||||
                        localStorage.setItem("cur-page", data.current_page);
 | 
			
		||||
                        // put the current_page into sessionStorage
 | 
			
		||||
                        sessionStorage.setItem("cur-page", data.current_page);
 | 
			
		||||
 | 
			
		||||
                        // redirect
 | 
			
		||||
                        location.href = `/admin/subscriptions/${i.id}`;
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user