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:
@@ -221,7 +221,14 @@ export const SharePublicDashboard = (props: Props) => {
|
|||||||
</Field>
|
</Field>
|
||||||
)}
|
)}
|
||||||
</FieldSet>
|
</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
|
Save Sharing Configuration
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user