Explorar o código

Merge pull request #3842 from overleaf/jpa-persistent-navigation-between-tabs

[views] admin: persist the navigation between tabs into the URL

GitOrigin-RevId: 202793b9d0b17934bb952e0283228603e036dbc9
Jakob Ackermann %!s(int64=5) %!d(string=hai) anos
pai
achega
b532833466
Modificáronse 1 ficheiros con 5 adicións e 5 borrados
  1. 5 5
      services/web/app/views/admin/index.pug

+ 5 - 5
services/web/app/views/admin/index.pug

@@ -8,8 +8,8 @@ block content
 					.card
 						.page-header
 							h1 Admin Panel
-						tabset(ng-cloak)
-							tab(heading="System Messages")
+						tabset(bookmarkable-tabset ng-cloak)
+							tab(heading="System Messages" bookmarkable-tab="system-messages")
 								each message in systemMessages
 									.alert.alert-info.row-spaced(ng-non-bindable) #{message.content}
 								hr
@@ -25,7 +25,7 @@ block content
 									button.btn.btn-danger(type="submit") Clear all messages
 
 
-							tab(heading="Open Sockets")
+							tab(heading="Open Sockets" bookmarkable-tab="open-sockets")
 								.row-spaced
 									ul
 										each agents, url in openSockets
@@ -34,7 +34,7 @@ block content
 													each agent in agents
 														li(ng-non-bindable) #{agent}
 
-							tab(heading="Open/Close Editor")
+							tab(heading="Open/Close Editor" bookmarkable-tab="open-close-editor")
 								if hasFeature('saas')
 									| The "Open/Close Editor" feature is not available in SAAS.
 								else
@@ -56,7 +56,7 @@ block content
 											button.btn.btn-danger(type="submit") Reopen Editor
 										p.small Will reopen the editor after closing.
 
-							tab(heading="TPDS/Dropbox Management")
+							tab(heading="TPDS/Dropbox Management" bookmarkable-tab="tpds")
 								h3 Flush project to TPDS
 								.row
 									form.col-xs-6(method='post',action='/admin/flushProjectToTpds')