mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Alerting: Move modal buttons before the rules table (#59703)
Move modal buttons before the rules table
This commit is contained in:
parent
76233f9997
commit
020b9960c8
@ -394,20 +394,7 @@ export function EditCloudGroupModal(props: ModalProps): React.ReactElement {
|
|||||||
{checkEvaluationIntervalGlobalLimit(watch('groupInterval')).exceedsLimit && (
|
{checkEvaluationIntervalGlobalLimit(watch('groupInterval')).exceedsLimit && (
|
||||||
<EvaluationIntervalLimitExceeded />
|
<EvaluationIntervalLimitExceeded />
|
||||||
)}
|
)}
|
||||||
{rulerRuleRequests && (
|
<div className={styles.modalButtons}>
|
||||||
<>
|
|
||||||
<div>List of rules that belong to this group</div>
|
|
||||||
<div className={styles.evalRequiredLabel}>
|
|
||||||
#Evaluations column represents the number of evaluations needed before alert starts firing.
|
|
||||||
</div>
|
|
||||||
<RulesForGroupTable
|
|
||||||
rulerRules={groupfoldersForSource?.result}
|
|
||||||
groupName={groupName}
|
|
||||||
folderName={nameSpaceName}
|
|
||||||
/>
|
|
||||||
</>
|
|
||||||
)}
|
|
||||||
|
|
||||||
<Modal.ButtonRow>
|
<Modal.ButtonRow>
|
||||||
<Button
|
<Button
|
||||||
variant="secondary"
|
variant="secondary"
|
||||||
@ -426,6 +413,20 @@ export function EditCloudGroupModal(props: ModalProps): React.ReactElement {
|
|||||||
{loading ? 'Saving...' : 'Save changes'}
|
{loading ? 'Saving...' : 'Save changes'}
|
||||||
</Button>
|
</Button>
|
||||||
</Modal.ButtonRow>
|
</Modal.ButtonRow>
|
||||||
|
</div>
|
||||||
|
{rulerRuleRequests && (
|
||||||
|
<>
|
||||||
|
<div>List of rules that belong to this group</div>
|
||||||
|
<div className={styles.evalRequiredLabel}>
|
||||||
|
#Evaluations column represents the number of evaluations needed before alert starts firing.
|
||||||
|
</div>
|
||||||
|
<RulesForGroupTable
|
||||||
|
rulerRules={groupfoldersForSource?.result}
|
||||||
|
groupName={groupName}
|
||||||
|
folderName={nameSpaceName}
|
||||||
|
/>
|
||||||
|
</>
|
||||||
|
)}
|
||||||
</>
|
</>
|
||||||
</form>
|
</form>
|
||||||
</FormProvider>
|
</FormProvider>
|
||||||
@ -437,6 +438,10 @@ const getStyles = (theme: GrafanaTheme2) => ({
|
|||||||
modal: css`
|
modal: css`
|
||||||
max-width: 560px;
|
max-width: 560px;
|
||||||
`,
|
`,
|
||||||
|
modalButtons: css`
|
||||||
|
top: -24px;
|
||||||
|
position: relative;
|
||||||
|
`,
|
||||||
formInput: css`
|
formInput: css`
|
||||||
width: 275px;
|
width: 275px;
|
||||||
& + & {
|
& + & {
|
||||||
|
Loading…
Reference in New Issue
Block a user