mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-16 03:06:27 +00:00
Change name Pinn to Pin
This commit is contained in:
@@ -284,7 +284,7 @@ class NoteList extends React.Component {
|
|||||||
return folderNoteKeyList.map((uniqueKey) => data.noteMap.get(uniqueKey))
|
return folderNoteKeyList.map((uniqueKey) => data.noteMap.get(uniqueKey))
|
||||||
}
|
}
|
||||||
|
|
||||||
sortByPinn (unorderedNotes) {
|
sortByPin (unorderedNotes) {
|
||||||
const { data, params } = this.props
|
const { data, params } = this.props
|
||||||
let storageKey = params.storageKey
|
let storageKey = params.storageKey
|
||||||
let folderKey = params.folderKey
|
let folderKey = params.folderKey
|
||||||
@@ -494,7 +494,7 @@ class NoteList extends React.Component {
|
|||||||
? sortByAlphabetical
|
? sortByAlphabetical
|
||||||
: sortByUpdatedAt
|
: sortByUpdatedAt
|
||||||
const sortedNotes = this.getNotes().sort(sortFunc)
|
const sortedNotes = this.getNotes().sort(sortFunc)
|
||||||
this.notes = notes = this.sortByPinn(sortedNotes)
|
this.notes = notes = this.sortByPin(sortedNotes)
|
||||||
.filter((note) => {
|
.filter((note) => {
|
||||||
// this is for the trash box
|
// this is for the trash box
|
||||||
if (note.isTrashed !== true || location.pathname === '/trashed') return true
|
if (note.isTrashed !== true || location.pathname === '/trashed') return true
|
||||||
|
|||||||
Reference in New Issue
Block a user