feat: test admin globals
This commit is contained in:
@@ -75,6 +75,7 @@ const DefaultNav = () => {
|
||||
if (permissions?.collections?.[collection.slug]?.read.permission) {
|
||||
return (
|
||||
<NavLink
|
||||
id={`nav-${collection.slug}`}
|
||||
activeClassName="active"
|
||||
key={i}
|
||||
to={href}
|
||||
@@ -98,6 +99,7 @@ const DefaultNav = () => {
|
||||
if (permissions?.globals?.[global.slug].read.permission) {
|
||||
return (
|
||||
<NavLink
|
||||
id={`nav-global-${global.slug}`}
|
||||
activeClassName="active"
|
||||
key={i}
|
||||
to={href}
|
||||
|
||||
@@ -115,7 +115,7 @@ const DefaultGlobalView: React.FC<Props> = (props) => {
|
||||
</React.Fragment>
|
||||
)}
|
||||
{!global.versions?.drafts && (
|
||||
<FormSubmit>Save</FormSubmit>
|
||||
<FormSubmit buttonId="action-save">Save</FormSubmit>
|
||||
)}
|
||||
</React.Fragment>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user