mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-10-20 22:01:08 +08:00

* feat: dashboard lock feature * feat: update API method and minor ui updates * feat: update API and author logic * feat: update permissions for author role * feat: use strings and remove console logs
12 lines
268 B
TypeScript
12 lines
268 B
TypeScript
import axios from 'api';
|
|
import { AxiosResponse } from 'axios';
|
|
|
|
interface LockDashboardProps {
|
|
uuid: string;
|
|
}
|
|
|
|
const lockDashboard = (props: LockDashboardProps): Promise<AxiosResponse> =>
|
|
axios.put(`/dashboards/${props.uuid}/lock`);
|
|
|
|
export default lockDashboard;
|