Skip to content

Commit

Permalink
Fix custom estimation and retro template create actions
Browse files Browse the repository at this point in the history
  • Loading branch information
StevenWeathers committed Sep 20, 2024
1 parent 589547f commit abbbf93
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
handleCreate();
})
.catch(() => {
notifications.error($LL.estimationScaleCreateError());
notifications.danger($LL.estimationScaleCreateError());
});
}
Expand All @@ -86,7 +86,7 @@
} else {
// If the input is not valid, don't update the values array
// Optionally, you could provide feedback to the user here
notifications.error(
notifications.danger(
'Invalid input. Please use only letters, numbers, and commas.',
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
<TableContainer>
<TableNav
title="{$LL.estimationScales()}"
createBtnEnabled="{isAdmin}"
createBtnEnabled="{isAdmin || isEntityAdmin}"
createBtnText="{$LL.estimationScaleCreate()}"
createButtonHandler="{toggleCreateScale}"
createBtnTestId="scale-create"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
handleUpdate();
})
.catch(() => {
notifications.error($LL.estimationScaleUpdateError());
notifications.danger($LL.estimationScaleUpdateError());
});
}
Expand All @@ -88,7 +88,7 @@
} else {
// If the input is not valid, don't update the values array
// Optionally, you could provide feedback to the user here
notifications.error(
notifications.danger(
'Invalid input. Please use only letters, numbers, and commas.',
);
}
Expand Down
2 changes: 1 addition & 1 deletion ui/src/components/retro/RetroActionItemReview.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
})
.catch(err => {
console.error(err);
notifications.error("Failed to fetch team's action items");
notifications.danger("Failed to fetch team's action items");
});
}
Expand Down
2 changes: 1 addition & 1 deletion ui/src/components/retrotemplate/CreateRetroTemplate.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
handleCreate();
})
.catch(() => {
notifications.error($LL.retroTemplateCreateError());
notifications.danger($LL.retroTemplateCreateError());
});
}
Expand Down
2 changes: 1 addition & 1 deletion ui/src/components/retrotemplate/RetroTemplatesList.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
<TableContainer>
<TableNav
title="{$LL.retroTemplates()}"
createBtnEnabled="{isAdmin}"
createBtnEnabled="{isAdmin || isEntityAdmin}"
createBtnText="{$LL.retroTemplateCreate()}"
createButtonHandler="{toggleCreateTemplate}"
createBtnTestId="template-create"
Expand Down
2 changes: 1 addition & 1 deletion ui/src/components/retrotemplate/UpdateRetroTemplate.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
handleUpdate();
})
.catch(() => {
notifications.error($LL.retroTemplateUpdateError());
notifications.danger($LL.retroTemplateUpdateError());
});
}
Expand Down

0 comments on commit abbbf93

Please sign in to comment.