mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
public dashboards: check to see if dashboard state is different from persisted on save (#52008)
* public dashboards: check to see if dashboard state is different from persisted on save Co-authored-by: Ezequiel Victorero <ezequiel.victorero@grafana.com>
This commit is contained in:
parent
3395981d35
commit
58ff0f07b4
@ -221,7 +221,14 @@ export const SharePublicDashboard = (props: Props) => {
|
||||
</Field>
|
||||
)}
|
||||
</FieldSet>
|
||||
<Button disabled={!acknowledged()} onClick={onSavePublicConfig}>
|
||||
|
||||
{props.dashboard.hasUnsavedChanges() && (
|
||||
<Alert
|
||||
title="Please save your dashboard changes before updating the public configuration"
|
||||
severity="warning"
|
||||
/>
|
||||
)}
|
||||
<Button disabled={!acknowledged() || props.dashboard.hasUnsavedChanges()} onClick={onSavePublicConfig}>
|
||||
Save Sharing Configuration
|
||||
</Button>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user