[PR #13489] [CLOSED] Remove card management buttons when the dashboard is locked #14191

Closed
opened 2025-12-29 23:23:05 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/13489
Author: @jsenecal
Created: 8/16/2023
Status: Closed

Base: developHead: 13077_properly_lock_dashboard


📝 Commits (4)

  • 3c7ad61 Properly hide dashboard buttons
  • e8b6f5c Hide grid stack buttons when dashboard is locked
  • b31e25c Update project-static
  • 922e3e2 Use document.querySelectorAll()

📊 Changes

5 files changed (+13 additions, -5 deletions)

View changed files

📝 netbox/project-static/dist/netbox.js (+1 -1)
📝 netbox/project-static/dist/netbox.js.map (+1 -1)
📝 netbox/project-static/src/dashboard.ts (+4 -0)
📝 netbox/templates/extras/dashboard/widget.html (+2 -2)
📝 netbox/templates/home.html (+5 -1)

📄 Description

Fixes: #13077

The cog-style and close buttons should be hidden on the various cards when the dashboard is locked in order to prevent changes to the dashboard in modal forms or from the dashboard itself.

This PR addresses this and hides the buttons when the dashboard is locked.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbox-community/netbox/pull/13489 **Author:** [@jsenecal](https://github.com/jsenecal) **Created:** 8/16/2023 **Status:** ❌ Closed **Base:** `develop` ← **Head:** `13077_properly_lock_dashboard` --- ### 📝 Commits (4) - [`3c7ad61`](https://github.com/netbox-community/netbox/commit/3c7ad61f8be840920fbfed3ba757321259f4de65) Properly hide dashboard buttons - [`e8b6f5c`](https://github.com/netbox-community/netbox/commit/e8b6f5c89df06a4532427c1b6df209676218aba7) Hide grid stack buttons when dashboard is locked - [`b31e25c`](https://github.com/netbox-community/netbox/commit/b31e25cfab4b29dd09fd5da89fc5b410e7c38d8c) Update project-static - [`922e3e2`](https://github.com/netbox-community/netbox/commit/922e3e27fa9a90d62d139f3f6ff8fa291c3cd5b2) Use document.querySelectorAll() ### 📊 Changes **5 files changed** (+13 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `netbox/project-static/dist/netbox.js` (+1 -1) 📝 `netbox/project-static/dist/netbox.js.map` (+1 -1) 📝 `netbox/project-static/src/dashboard.ts` (+4 -0) 📝 `netbox/templates/extras/dashboard/widget.html` (+2 -2) 📝 `netbox/templates/home.html` (+5 -1) </details> ### 📄 Description <!-- Thank you for your interest in contributing to NetBox! Please note that our contribution policy requires that a feature request or bug report be approved and assigned prior to opening a pull request. This helps avoid waste time and effort on a proposed change that we might not be able to accept. IF YOUR PULL REQUEST DOES NOT REFERENCE AN ISSUE WHICH HAS BEEN ASSIGNED TO YOU, IT WILL BE CLOSED AUTOMATICALLY. Please specify your assigned issue number on the line below. --> ### Fixes: #13077 The cog-style and close buttons should be hidden on the various cards when the dashboard is locked in order to prevent changes to the dashboard in modal forms or from the dashboard itself. This PR addresses this and hides the buttons when the dashboard is locked. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 23:23:05 +01:00
adam closed this issue 2025-12-29 23:23:06 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#14191