MCPcopy
hub / github.com/hedgedoc/hedgedoc / checkHistoryList

Function checkHistoryList

public/js/cover.js:118–132  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

116})
117
118function checkHistoryList () {
119 if ($('#history-list').children().length > 0) {
120 $('.pagination').show()
121 $('.ui-nohistory').hide()
122 $('.ui-import-from-browser').hide()
123 } else if ($('#history-list').children().length === 0) {
124 $('.pagination').hide()
125 $('.ui-nohistory').slideDown()
126 getStorageHistory(data => {
127 if (data && data.length > 0 && getLoginState() && historyList.items.length === 0) {
128 $('.ui-import-from-browser').slideDown()
129 }
130 })
131 }
132}
133
134function parseHistoryCallback (list, notehistory) {
135 checkHistoryList()

Callers 3

parseHistoryCallbackFunction · 0.85
deleteHistoryFunction · 0.85
cover.jsFile · 0.85

Calls 2

getStorageHistoryFunction · 0.90
getLoginStateFunction · 0.90

Tested by

no test coverage detected