RefreshPicker: Change running state to be less distracting (#86405)

RefreshPicker: Change running state to not change button variant to destructive
This commit is contained in:
Torkel Ödegaard 2024-04-18 05:46:43 +02:00 committed by GitHub
parent a8b81e1481
commit 3870ecd2e0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 6 additions and 10 deletions

View File

@ -255,7 +255,7 @@
"@grafana/prometheus": "workspace:*",
"@grafana/runtime": "workspace:*",
"@grafana/saga-icons": "workspace:*",
"@grafana/scenes": "^4.6.0",
"@grafana/scenes": "^4.10.0",
"@grafana/schema": "workspace:*",
"@grafana/sql": "workspace:*",
"@grafana/ui": "workspace:*",

View File

@ -63,10 +63,6 @@ export class RefreshPicker extends PureComponent<Props> {
return 'primary';
}
if (this.props.isLoading) {
return 'destructive';
}
if (this.props.primary) {
return 'primary';
}

View File

@ -4180,9 +4180,9 @@ __metadata:
languageName: unknown
linkType: soft
"@grafana/scenes@npm:^4.6.0":
version: 4.8.0
resolution: "@grafana/scenes@npm:4.8.0"
"@grafana/scenes@npm:^4.10.0":
version: 4.10.0
resolution: "@grafana/scenes@npm:4.10.0"
dependencies:
"@grafana/e2e-selectors": "npm:10.3.3"
react-grid-layout: "npm:1.3.4"
@ -4196,7 +4196,7 @@ __metadata:
"@grafana/ui": ^10.0.3
react: ^18.0.0
react-dom: ^18.0.0
checksum: 10/8930094261ab43da948a1dac260d0246dd41c906fb4fe060ad2b534ea82ed1ee1b1d26f839ac08add1a25127a2b7b05a7c2f273a4013bda63146dae118e5d5ea
checksum: 10/00c2d5f4606184eac757ab01bbace495c5aacec792de3cf55a66dd4597a3ab1bf2bf97806d9271f18107d738244d6c89579fe3db2f1a52506b64243ba1a9d782
languageName: node
linkType: hard
@ -18609,7 +18609,7 @@ __metadata:
"@grafana/prometheus": "workspace:*"
"@grafana/runtime": "workspace:*"
"@grafana/saga-icons": "workspace:*"
"@grafana/scenes": "npm:^4.6.0"
"@grafana/scenes": "npm:^4.10.0"
"@grafana/schema": "workspace:*"
"@grafana/sql": "workspace:*"
"@grafana/tsconfig": "npm:^1.3.0-rc1"