mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
fix(editor): Insights FE fixes and improvements (#14398)
Co-authored-by: r00gm <raul00gm@gmail.com>
This commit is contained in:
@@ -111,7 +111,9 @@ const mainMenuItems = computed(() => [
|
||||
customIconSize: 'medium',
|
||||
position: 'bottom',
|
||||
route: { to: { name: VIEWS.INSIGHTS } },
|
||||
available: hasPermission(['rbac'], { rbac: { scope: 'insights:list' } }),
|
||||
available:
|
||||
settingsStore.settings.insights.enabled &&
|
||||
hasPermission(['rbac'], { rbac: { scope: 'insights:list' } }),
|
||||
},
|
||||
{
|
||||
id: 'help',
|
||||
|
||||
@@ -380,7 +380,11 @@ const toggleTimeout = () => {
|
||||
|
||||
const updateTimeSavedPerExecution = (value: string) => {
|
||||
const numValue = parseInt(value, 10);
|
||||
workflowSettings.value.timeSavedPerExecution = isNaN(numValue) ? undefined : numValue;
|
||||
workflowSettings.value.timeSavedPerExecution = isNaN(numValue)
|
||||
? undefined
|
||||
: numValue < 0
|
||||
? 0
|
||||
: numValue;
|
||||
};
|
||||
|
||||
onMounted(async () => {
|
||||
@@ -826,6 +830,7 @@ onMounted(async () => {
|
||||
:disabled="readOnlyEnv || !workflowPermissions.update"
|
||||
data-test-id="workflow-settings-time-saved-per-execution"
|
||||
type="number"
|
||||
min="0"
|
||||
@update:model-value="updateTimeSavedPerExecution"
|
||||
/>
|
||||
<span>{{ i18n.baseText('workflowSettings.timeSavedPerExecution.hint') }}</span>
|
||||
|
||||
Reference in New Issue
Block a user