aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/rest
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/shared/rest')
-rw-r--r--client/src/app/shared/rest/rest-table.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/client/src/app/shared/rest/rest-table.ts b/client/src/app/shared/rest/rest-table.ts
index 165fc4e45..fe1a91d2d 100644
--- a/client/src/app/shared/rest/rest-table.ts
+++ b/client/src/app/shared/rest/rest-table.ts
@@ -1,3 +1,4 @@
1import { peertubeLocalStorage } from '@app/shared/misc/peertube-local-storage'
1import { LazyLoadEvent } from 'primeng/components/common/lazyloadevent' 2import { LazyLoadEvent } from 'primeng/components/common/lazyloadevent'
2import { SortMeta } from 'primeng/components/common/sortmeta' 3import { SortMeta } from 'primeng/components/common/sortmeta'
3 4
@@ -15,7 +16,7 @@ export abstract class RestTable {
15 protected abstract loadData (): void 16 protected abstract loadData (): void
16 17
17 loadSort () { 18 loadSort () {
18 const result = localStorage.getItem(this.sortLocalStorageKey) 19 const result = peertubeLocalStorage.getItem(this.sortLocalStorageKey)
19 20
20 if (result) { 21 if (result) {
21 try { 22 try {
@@ -42,7 +43,7 @@ export abstract class RestTable {
42 } 43 }
43 44
44 saveSort () { 45 saveSort () {
45 localStorage.setItem(this.sortLocalStorageKey, JSON.stringify(this.sort)) 46 peertubeLocalStorage.setItem(this.sortLocalStorageKey, JSON.stringify(this.sort))
46 } 47 }
47 48
48} 49}