Skip to content

Commit a28e06e

Browse files
committed
Add loading banner
1 parent 3b88146 commit a28e06e

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

app/alert/alert_service.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export type Alert = {
55
type: AlertType;
66
};
77

8-
export type AlertType = "error" | "success" | "warning";
8+
export type AlertType = "error" | "success" | "warning" | "info";
99

1010
export class AlertService {
1111
alerts = new Subject<Alert>();
@@ -27,6 +27,10 @@ export class AlertService {
2727
error(message: string) {
2828
this.show({ message, type: "error" });
2929
}
30+
31+
loading() {
32+
this.show({ message: "Loading...", type: "info" });
33+
}
3034
}
3135

3236
export default new AlertService();

enterprise/app/workflows/workflows.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,7 @@ class RepoItem extends React.Component<RepoItemProps, RepoItemState> {
390390
useDefaultWorkflowConfig: updated,
391391
});
392392

393+
alert_service.loading();
393394
rpcService.service
394395
.updateGitHubRepoSettings(request)
395396
.then(() => {

0 commit comments

Comments
 (0)