Skip to content

Commit 92c854e

Browse files
committed
Simplify confirmation messages for form config component
1 parent ce05272 commit 92c854e

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/ui/preact/basic_config_component.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export abstract class BasicConfigComponent extends Component<
5454
// Note: use arrow function to properly capture `this`.
5555
protected writeConfig = async () => {
5656
const confirmResult = this.props.notificator.confirm(
57-
"Are you sure you want to update configuration?",
57+
"Update configuration?",
5858
NotificationSeverity.Wrn,
5959
);
6060
if (confirmResult.error) {
@@ -94,7 +94,7 @@ export abstract class BasicConfigComponent extends Component<
9494
}
9595

9696
const alertResult = this.props.notificator.alert(
97-
"Configuration updated successfully!",
97+
"Configuration updated!",
9898
NotificationSeverity.Inf,
9999
);
100100
if (alertResult.error) {
@@ -109,7 +109,7 @@ export abstract class BasicConfigComponent extends Component<
109109
// Note: use arrow function to properly capture `this`.
110110
protected resetConfig = async () => {
111111
const confirmResult = this.props.notificator.confirm(
112-
"Are you sure you want to reset configuration?",
112+
"Reset configuration?",
113113
NotificationSeverity.Wrn,
114114
);
115115
if (confirmResult.error) {
@@ -149,7 +149,7 @@ export abstract class BasicConfigComponent extends Component<
149149
}
150150

151151
const alertResult = this.props.notificator.alert(
152-
"Configuration reseted successfully!",
152+
"Configuration reseted!",
153153
NotificationSeverity.Inf,
154154
);
155155
if (alertResult.error) {

0 commit comments

Comments
 (0)