@@ -528,7 +528,7 @@ async function renderDashboard() {
528528 < div class ="page " id ="page-pyrodactyl "> </ div >
529529 < div class ="page " id ="page-account "> </ div >
530530 < div class ="page " id ="page-server-detail "> </ div >
531- < div class ="page " id ="page-log "> </ div >
531+ < div class ="page " id ="page-logs "> </ div >
532532 </ main >
533533 </ div >
534534
@@ -660,7 +660,7 @@ function navigateTo(page) {
660660 else if ( param === 'links' ) renderAccountLinks ( ) ;
661661 else if ( param === 'dangerous' ) renderDangerous ( ) ;
662662 else renderAccount ( ) ;
663- } else if ( basePage === 'log ' ) {
663+ } else if ( basePage === 'logs ' ) {
664664 renderLog ( ) ;
665665 }
666666 }
@@ -716,7 +716,7 @@ window.addEventListener('popstate', () => {
716716 else if ( param === 'links' ) renderAccountLinks ( ) ;
717717 else if ( param === 'dangerous' ) renderDangerous ( ) ;
718718 else renderAccount ( ) ;
719- } else if ( basePage === 'log ' ) {
719+ } else if ( basePage === 'logs ' ) {
720720 renderLog ( ) ;
721721 }
722722 }
@@ -838,7 +838,7 @@ function getActionLabel(action) {
838838}
839839
840840async function renderLog ( pageNum ) {
841- const el = $ ( '#page-log ' ) ;
841+ const el = $ ( '#page-logs ' ) ;
842842 pageNum = pageNum || 1 ;
843843 const limit = 50 ;
844844 const offset = ( pageNum - 1 ) * limit ;
@@ -940,7 +940,7 @@ async function renderActivity() {
940940 ` ) . join ( '' ) }
941941 ${ hasMore ? html `
942942 < div class ="activity-more-overlay ">
943- < a class ="btn btn-primary btn-sm " onclick ="navigateTo('log ') " style ="width:auto "> View all logs</ a >
943+ < a class ="btn btn-primary btn-sm " onclick ="navigateTo('logs ') " style ="width:auto "> View all logs</ a >
944944 </ div >
945945 ` : '' }
946946 </ div >
@@ -1405,7 +1405,7 @@ function renderAccount() {
14051405
14061406 $ ( '#account-menu-edit' ) . addEventListener ( 'click' , ( ) => navigateTo ( 'account/edit' ) ) ;
14071407 $ ( '#account-menu-links' ) . addEventListener ( 'click' , ( ) => navigateTo ( 'account/links' ) ) ;
1408- $ ( '#account-menu-logs' ) . addEventListener ( 'click' , ( ) => navigateTo ( 'log ' ) ) ;
1408+ $ ( '#account-menu-logs' ) . addEventListener ( 'click' , ( ) => navigateTo ( 'logs ' ) ) ;
14091409 $ ( '#account-menu-dangerous' ) . addEventListener ( 'click' , ( ) => navigateTo ( 'account/dangerous' ) ) ;
14101410 $ ( '#account-menu-logout' ) . addEventListener ( 'click' , async ( ) => {
14111411 try { await api ( '/auth/logout' , { method : 'POST' } ) ; } catch { }
0 commit comments