mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-06-19 18:56:48 +02:00
Inline popstate handler and remove unused function
This commit is contained in:
parent
69f304b101
commit
ae9e27bc4e
1 changed files with 1 additions and 18 deletions
|
@ -262,7 +262,7 @@ export default {
|
|||
*/
|
||||
initializeSortSettings() {
|
||||
// Load sort settings from URL
|
||||
this.loadSortSettingsFromURL();
|
||||
this.handlePopState();
|
||||
|
||||
// Set default sort values for groups not configured in URL
|
||||
if (this.$root.publicGroupList) {
|
||||
|
@ -307,15 +307,6 @@ export default {
|
|||
return group.sortKey || "status";
|
||||
},
|
||||
|
||||
/**
|
||||
* Get sort direction symbol
|
||||
* @param {object} group object
|
||||
* @returns {string} sort direction symbol
|
||||
*/
|
||||
getSortDirectionSymbol(group) {
|
||||
return (group.sortDirection === "asc") ? "↑" : "↓";
|
||||
},
|
||||
|
||||
/**
|
||||
* Set group sort key and direction, then apply sorting
|
||||
* @param {object} group object
|
||||
|
@ -487,14 +478,6 @@ export default {
|
|||
* @returns {void}
|
||||
*/
|
||||
handlePopState() {
|
||||
this.loadSortSettingsFromURL();
|
||||
},
|
||||
|
||||
/**
|
||||
* Load sort settings from URL
|
||||
* @returns {void}
|
||||
*/
|
||||
loadSortSettingsFromURL() {
|
||||
if (!this.$root.publicGroupList) {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue