2019-06-23 03:35:23 -07:00
|
|
|
<template>
|
2021-09-22 00:23:37 -07:00
|
|
|
<Modal
|
2021-10-18 20:57:49 -07:00
|
|
|
:name="WORKFLOW_SETTINGS_MODAL_KEY"
|
2021-09-22 00:23:37 -07:00
|
|
|
width="65%"
|
|
|
|
maxHeight="80%"
|
2021-12-15 04:16:53 -08:00
|
|
|
:title="$locale.baseText('workflowSettings.settingsFor', { interpolate: { workflowName, workflowId } })"
|
2021-09-22 00:23:37 -07:00
|
|
|
:eventBus="modalBus"
|
|
|
|
:scrollable="true"
|
|
|
|
>
|
2022-11-18 05:59:31 -08:00
|
|
|
<template #content>
|
2021-09-22 00:23:37 -07:00
|
|
|
<div v-loading="isLoading" class="workflow-settings">
|
2019-06-23 03:35:23 -07:00
|
|
|
<el-row>
|
|
|
|
<el-col :span="10" class="setting-name">
|
2021-12-15 04:16:53 -08:00
|
|
|
{{ $locale.baseText('workflowSettings.errorWorkflow') + ":" }}
|
2021-08-29 04:36:17 -07:00
|
|
|
<n8n-tooltip class="setting-info" placement="top" >
|
2022-11-18 05:59:31 -08:00
|
|
|
<template #content>
|
|
|
|
<div v-html="helpTexts.errorWorkflow"></div>
|
|
|
|
</template>
|
2019-06-23 03:35:23 -07:00
|
|
|
<font-awesome-icon icon="question-circle" />
|
2021-08-29 04:36:17 -07:00
|
|
|
</n8n-tooltip>
|
2019-06-23 03:35:23 -07:00
|
|
|
</el-col>
|
|
|
|
<el-col :span="14" class="ignore-key-press">
|
2021-08-29 04:36:17 -07:00
|
|
|
<n8n-select v-model="workflowSettings.errorWorkflow" placeholder="Select Workflow" size="medium" filterable :limit-popper-width="true">
|
|
|
|
<n8n-option
|
2019-06-23 03:35:23 -07:00
|
|
|
v-for="item in workflows"
|
|
|
|
:key="item.id"
|
|
|
|
:label="item.name"
|
|
|
|
:value="item.id">
|
2021-08-29 04:36:17 -07:00
|
|
|
</n8n-option>
|
|
|
|
</n8n-select>
|
2019-06-23 03:35:23 -07:00
|
|
|
</el-col>
|
|
|
|
</el-row>
|
|
|
|
<el-row>
|
|
|
|
<el-col :span="10" class="setting-name">
|
2021-12-15 04:16:53 -08:00
|
|
|
{{ $locale.baseText('workflowSettings.timezone') + ":" }}
|
2021-08-29 04:36:17 -07:00
|
|
|
<n8n-tooltip class="setting-info" placement="top" >
|
2022-11-18 05:59:31 -08:00
|
|
|
<template #content>
|
|
|
|
<div v-text="helpTexts.timezone"></div>
|
|
|
|
</template>
|
2019-06-23 03:35:23 -07:00
|
|
|
<font-awesome-icon icon="question-circle" />
|
2021-08-29 04:36:17 -07:00
|
|
|
</n8n-tooltip>
|
2019-06-23 03:35:23 -07:00
|
|
|
</el-col>
|
|
|
|
<el-col :span="14" class="ignore-key-press">
|
2021-08-29 04:36:17 -07:00
|
|
|
<n8n-select v-model="workflowSettings.timezone" placeholder="Select Timezone" size="medium" filterable :limit-popper-width="true">
|
|
|
|
<n8n-option
|
2019-06-23 03:35:23 -07:00
|
|
|
v-for="timezone of timezones"
|
|
|
|
:key="timezone.key"
|
|
|
|
:label="timezone.value"
|
|
|
|
:value="timezone.key">
|
2021-08-29 04:36:17 -07:00
|
|
|
</n8n-option>
|
|
|
|
</n8n-select>
|
2019-06-23 03:35:23 -07:00
|
|
|
</el-col>
|
|
|
|
</el-row>
|
2019-07-10 11:53:13 -07:00
|
|
|
<el-row>
|
|
|
|
<el-col :span="10" class="setting-name">
|
2021-12-15 04:16:53 -08:00
|
|
|
{{ $locale.baseText('workflowSettings.saveDataErrorExecution') + ":" }}
|
2021-08-29 04:36:17 -07:00
|
|
|
<n8n-tooltip class="setting-info" placement="top" >
|
2022-11-18 05:59:31 -08:00
|
|
|
<template #content>
|
|
|
|
<div v-text="helpTexts.saveDataErrorExecution"></div>
|
|
|
|
</template>
|
2019-07-10 11:53:13 -07:00
|
|
|
<font-awesome-icon icon="question-circle" />
|
2021-08-29 04:36:17 -07:00
|
|
|
</n8n-tooltip>
|
2019-07-10 11:53:13 -07:00
|
|
|
</el-col>
|
|
|
|
<el-col :span="14" class="ignore-key-press">
|
2021-12-15 04:16:53 -08:00
|
|
|
<n8n-select v-model="workflowSettings.saveDataErrorExecution" :placeholder="$locale.baseText('workflowSettings.selectOption')" size="medium" filterable :limit-popper-width="true">
|
2021-08-29 04:36:17 -07:00
|
|
|
<n8n-option
|
2019-07-10 11:53:13 -07:00
|
|
|
v-for="option of saveDataErrorExecutionOptions"
|
|
|
|
:key="option.key"
|
|
|
|
:label="option.value"
|
|
|
|
:value="option.key">
|
2021-08-29 04:36:17 -07:00
|
|
|
</n8n-option>
|
|
|
|
</n8n-select>
|
2019-07-10 11:53:13 -07:00
|
|
|
</el-col>
|
|
|
|
</el-row>
|
|
|
|
<el-row>
|
|
|
|
<el-col :span="10" class="setting-name">
|
2021-12-15 04:16:53 -08:00
|
|
|
{{ $locale.baseText('workflowSettings.saveDataSuccessExecution') + ":" }}
|
2021-08-29 04:36:17 -07:00
|
|
|
<n8n-tooltip class="setting-info" placement="top" >
|
2022-11-18 05:59:31 -08:00
|
|
|
<template #content>
|
|
|
|
<div v-text="helpTexts.saveDataSuccessExecution"></div>
|
|
|
|
</template>
|
2019-07-10 11:53:13 -07:00
|
|
|
<font-awesome-icon icon="question-circle" />
|
2021-08-29 04:36:17 -07:00
|
|
|
</n8n-tooltip>
|
2019-07-10 11:53:13 -07:00
|
|
|
</el-col>
|
|
|
|
<el-col :span="14" class="ignore-key-press">
|
2021-12-15 04:16:53 -08:00
|
|
|
<n8n-select v-model="workflowSettings.saveDataSuccessExecution" :placeholder="$locale.baseText('workflowSettings.selectOption')" size="medium" filterable :limit-popper-width="true">
|
2021-08-29 04:36:17 -07:00
|
|
|
<n8n-option
|
2019-07-10 11:53:13 -07:00
|
|
|
v-for="option of saveDataSuccessExecutionOptions"
|
|
|
|
:key="option.key"
|
|
|
|
:label="option.value"
|
|
|
|
:value="option.key">
|
2021-08-29 04:36:17 -07:00
|
|
|
</n8n-option>
|
|
|
|
</n8n-select>
|
2019-07-10 11:53:13 -07:00
|
|
|
</el-col>
|
|
|
|
</el-row>
|
2019-06-23 03:35:23 -07:00
|
|
|
<el-row>
|
|
|
|
<el-col :span="10" class="setting-name">
|
2021-12-15 04:16:53 -08:00
|
|
|
{{ $locale.baseText('workflowSettings.saveManualExecutions') + ":" }}
|
2021-08-29 04:36:17 -07:00
|
|
|
<n8n-tooltip class="setting-info" placement="top" >
|
2022-11-18 05:59:31 -08:00
|
|
|
<template #content>
|
|
|
|
<div v-text="helpTexts.saveManualExecutions"></div>
|
|
|
|
</template>
|
2019-06-23 03:35:23 -07:00
|
|
|
<font-awesome-icon icon="question-circle" />
|
2021-08-29 04:36:17 -07:00
|
|
|
</n8n-tooltip>
|
2019-06-23 03:35:23 -07:00
|
|
|
</el-col>
|
|
|
|
<el-col :span="14" class="ignore-key-press">
|
2021-12-15 04:16:53 -08:00
|
|
|
<n8n-select v-model="workflowSettings.saveManualExecutions" :placeholder="$locale.baseText('workflowSettings.selectOption')" size="medium" filterable :limit-popper-width="true">
|
2021-08-29 04:36:17 -07:00
|
|
|
<n8n-option
|
2019-06-23 03:35:23 -07:00
|
|
|
v-for="option of saveManualOptions"
|
|
|
|
:key="option.key"
|
|
|
|
:label="option.value"
|
|
|
|
:value="option.key">
|
2021-08-29 04:36:17 -07:00
|
|
|
</n8n-option>
|
|
|
|
</n8n-select>
|
2019-06-23 03:35:23 -07:00
|
|
|
</el-col>
|
|
|
|
</el-row>
|
2021-02-08 23:59:32 -08:00
|
|
|
<el-row>
|
|
|
|
<el-col :span="10" class="setting-name">
|
2021-12-15 04:16:53 -08:00
|
|
|
{{ $locale.baseText('workflowSettings.saveExecutionProgress') + ":" }}
|
2021-08-29 04:36:17 -07:00
|
|
|
<n8n-tooltip class="setting-info" placement="top" >
|
2022-11-18 05:59:31 -08:00
|
|
|
<template #content>
|
|
|
|
<div v-text="helpTexts.saveExecutionProgress"></div>
|
|
|
|
</template>
|
2021-02-08 23:59:32 -08:00
|
|
|
<font-awesome-icon icon="question-circle" />
|
2021-08-29 04:36:17 -07:00
|
|
|
</n8n-tooltip>
|
2021-02-08 23:59:32 -08:00
|
|
|
</el-col>
|
|
|
|
<el-col :span="14" class="ignore-key-press">
|
2021-12-15 04:16:53 -08:00
|
|
|
<n8n-select v-model="workflowSettings.saveExecutionProgress" :placeholder="$locale.baseText('workflowSettings.selectOption')" size="medium" filterable :limit-popper-width="true">
|
2021-08-29 04:36:17 -07:00
|
|
|
<n8n-option
|
2021-02-08 23:59:32 -08:00
|
|
|
v-for="option of saveExecutionProgressOptions"
|
|
|
|
:key="option.key"
|
|
|
|
:label="option.value"
|
|
|
|
:value="option.key">
|
2021-08-29 04:36:17 -07:00
|
|
|
</n8n-option>
|
|
|
|
</n8n-select>
|
2021-02-08 23:59:32 -08:00
|
|
|
</el-col>
|
|
|
|
</el-row>
|
2022-10-26 05:59:54 -07:00
|
|
|
<div v-if="isWorkflowSharingEnabled">
|
|
|
|
<el-row>
|
|
|
|
<el-col :span="10" class="setting-name">
|
|
|
|
{{ $locale.baseText('workflowSettings.callerPolicy') + ":" }}
|
|
|
|
<n8n-tooltip class="setting-info" placement="top" >
|
2022-11-18 05:59:31 -08:00
|
|
|
<template #content>
|
|
|
|
<div v-text="helpTexts.workflowCallerPolicy"></div>
|
|
|
|
</template>
|
2022-10-26 05:59:54 -07:00
|
|
|
<font-awesome-icon icon="question-circle" />
|
|
|
|
</n8n-tooltip>
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col :span="14" class="ignore-key-press">
|
|
|
|
<n8n-select v-model="workflowSettings.callerPolicy" :placeholder="$locale.baseText('workflowSettings.selectOption')" size="medium" filterable :limit-popper-width="true">
|
|
|
|
<n8n-option
|
|
|
|
v-for="option of workflowCallerPolicyOptions"
|
|
|
|
:key="option.key"
|
|
|
|
:label="option.value"
|
|
|
|
:value="option.key">
|
|
|
|
</n8n-option>
|
|
|
|
</n8n-select>
|
|
|
|
</el-col>
|
|
|
|
</el-row>
|
|
|
|
<el-row v-if="workflowSettings.callerPolicy === 'workflowsFromAList'">
|
|
|
|
<el-col :span="10" class="setting-name">
|
|
|
|
{{ $locale.baseText('workflowSettings.callerIds') + ":" }}
|
|
|
|
<n8n-tooltip class="setting-info" placement="top" >
|
2022-11-18 05:59:31 -08:00
|
|
|
<template #content>
|
|
|
|
<div v-text="helpTexts.workflowCallerIds"></div>
|
|
|
|
</template>
|
2022-10-26 05:59:54 -07:00
|
|
|
<font-awesome-icon icon="question-circle" />
|
|
|
|
</n8n-tooltip>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="14">
|
|
|
|
<n8n-input
|
|
|
|
type="text"
|
|
|
|
size="medium"
|
|
|
|
v-model="workflowSettings.callerIds"
|
|
|
|
@input="onCallerIdsInput"
|
|
|
|
/>
|
|
|
|
</el-col>
|
|
|
|
</el-row>
|
|
|
|
</div>
|
2020-07-29 05:12:54 -07:00
|
|
|
<el-row>
|
|
|
|
<el-col :span="10" class="setting-name">
|
2021-12-15 04:16:53 -08:00
|
|
|
{{ $locale.baseText('workflowSettings.timeoutWorkflow') + ":" }}
|
2021-08-29 04:36:17 -07:00
|
|
|
<n8n-tooltip class="setting-info" placement="top" >
|
2022-11-18 05:59:31 -08:00
|
|
|
<template #content>
|
|
|
|
<div v-text="helpTexts.executionTimeoutToggle"></div>
|
|
|
|
</template>
|
2020-07-29 05:12:54 -07:00
|
|
|
<font-awesome-icon icon="question-circle" />
|
2021-08-29 04:36:17 -07:00
|
|
|
</n8n-tooltip>
|
2020-07-29 05:12:54 -07:00
|
|
|
</el-col>
|
|
|
|
<el-col :span="14">
|
|
|
|
<div>
|
|
|
|
<el-switch ref="inputField" :value="workflowSettings.executionTimeout > -1" @change="toggleTimeout" active-color="#13ce66"></el-switch>
|
|
|
|
</div>
|
|
|
|
</el-col>
|
|
|
|
</el-row>
|
|
|
|
<div v-if="workflowSettings.executionTimeout > -1">
|
|
|
|
<el-row>
|
|
|
|
<el-col :span="10" class="setting-name">
|
2021-12-15 04:16:53 -08:00
|
|
|
{{ $locale.baseText('workflowSettings.timeoutAfter') + ":" }}
|
2021-08-29 04:36:17 -07:00
|
|
|
<n8n-tooltip class="setting-info" placement="top" >
|
2022-11-18 05:59:31 -08:00
|
|
|
<template #content>
|
|
|
|
<div v-text="helpTexts.executionTimeout"></div>
|
|
|
|
</template>
|
2020-07-29 05:12:54 -07:00
|
|
|
<font-awesome-icon icon="question-circle" />
|
2021-08-29 04:36:17 -07:00
|
|
|
</n8n-tooltip>
|
2020-07-29 05:12:54 -07:00
|
|
|
</el-col>
|
|
|
|
<el-col :span="4">
|
2021-08-29 04:36:17 -07:00
|
|
|
<n8n-input size="medium" :value="timeoutHMS.hours" @input="(value) => setTimeout('hours', value)" :min="0">
|
2022-11-18 05:59:31 -08:00
|
|
|
<template #append>{{ $locale.baseText('workflowSettings.hours') }}</template>
|
2021-08-29 04:36:17 -07:00
|
|
|
</n8n-input>
|
2020-07-29 05:12:54 -07:00
|
|
|
</el-col>
|
2021-08-29 04:36:17 -07:00
|
|
|
<el-col :span="4" class="timeout-input">
|
|
|
|
<n8n-input size="medium" :value="timeoutHMS.minutes" @input="(value) => setTimeout('minutes', value)" :min="0" :max="60">
|
2022-11-18 05:59:31 -08:00
|
|
|
<template #append>{{ $locale.baseText('workflowSettings.minutes') }}</template>
|
2021-08-29 04:36:17 -07:00
|
|
|
</n8n-input>
|
2020-07-29 05:12:54 -07:00
|
|
|
</el-col>
|
2021-08-29 04:36:17 -07:00
|
|
|
<el-col :span="4" class="timeout-input">
|
|
|
|
<n8n-input size="medium" :value="timeoutHMS.seconds" @input="(value) => setTimeout('seconds', value)" :min="0" :max="60">
|
2022-11-18 05:59:31 -08:00
|
|
|
<template #append>{{ $locale.baseText('workflowSettings.seconds') }}</template>
|
2021-08-29 04:36:17 -07:00
|
|
|
</n8n-input>
|
2020-07-29 05:12:54 -07:00
|
|
|
</el-col>
|
|
|
|
</el-row>
|
|
|
|
</div>
|
2019-06-23 03:35:23 -07:00
|
|
|
</div>
|
2021-09-22 00:23:37 -07:00
|
|
|
</template>
|
2022-11-18 05:59:31 -08:00
|
|
|
<template #footer>
|
2021-09-22 00:23:37 -07:00
|
|
|
<div class="action-buttons">
|
2021-12-16 07:47:59 -08:00
|
|
|
<n8n-button :label="$locale.baseText('workflowSettings.save')" size="large" float="right" @click="saveSettings" />
|
2021-09-22 00:23:37 -07:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</Modal>
|
2019-06-23 03:35:23 -07:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
|
|
import Vue from 'vue';
|
|
|
|
|
2021-05-05 17:46:33 -07:00
|
|
|
import { externalHooks } from '@/components/mixins/externalHooks';
|
2019-06-23 03:35:23 -07:00
|
|
|
import { restApi } from '@/components/mixins/restApi';
|
|
|
|
import { genericHelpers } from '@/components/mixins/genericHelpers';
|
|
|
|
import { showMessage } from '@/components/mixins/showMessage';
|
|
|
|
import {
|
2020-07-29 05:12:54 -07:00
|
|
|
ITimeoutHMS,
|
2019-06-23 03:35:23 -07:00
|
|
|
IWorkflowDataUpdate,
|
2019-07-10 11:53:13 -07:00
|
|
|
IWorkflowSettings,
|
|
|
|
IWorkflowShortResponse,
|
2022-11-04 06:04:31 -07:00
|
|
|
WorkflowCallerPolicyDefaultOption,
|
2019-06-23 03:35:23 -07:00
|
|
|
} from '@/Interface';
|
2021-09-22 00:23:37 -07:00
|
|
|
import Modal from './Modal.vue';
|
2022-10-26 01:02:56 -07:00
|
|
|
import { PLACEHOLDER_EMPTY_WORKFLOW_ID, WORKFLOW_SETTINGS_MODAL_KEY } from '../constants';
|
2019-06-23 03:35:23 -07:00
|
|
|
|
|
|
|
import mixins from 'vue-typed-mixins';
|
|
|
|
|
2022-10-18 04:33:31 -07:00
|
|
|
import { deepCopy } from "n8n-workflow";
|
2022-11-04 06:04:31 -07:00
|
|
|
import { mapStores } from 'pinia';
|
|
|
|
import { useWorkflowsStore } from '@/stores/workflows';
|
|
|
|
import { useSettingsStore } from '@/stores/settings';
|
|
|
|
import { useRootStore } from '@/stores/n8nRootStore';
|
2021-10-26 16:54:03 -07:00
|
|
|
|
2019-06-23 03:35:23 -07:00
|
|
|
export default mixins(
|
2021-05-05 17:46:33 -07:00
|
|
|
externalHooks,
|
2019-06-23 03:35:23 -07:00
|
|
|
genericHelpers,
|
|
|
|
restApi,
|
|
|
|
showMessage,
|
|
|
|
).extend({
|
|
|
|
name: 'WorkflowSettings',
|
2021-09-22 00:23:37 -07:00
|
|
|
components: {
|
|
|
|
Modal,
|
|
|
|
},
|
2019-06-23 03:35:23 -07:00
|
|
|
data () {
|
|
|
|
return {
|
|
|
|
isLoading: true,
|
|
|
|
helpTexts: {
|
2021-12-15 04:16:53 -08:00
|
|
|
errorWorkflow: this.$locale.baseText('workflowSettings.helpTexts.errorWorkflow'),
|
|
|
|
timezone: this.$locale.baseText('workflowSettings.helpTexts.timezone'),
|
|
|
|
saveDataErrorExecution: this.$locale.baseText('workflowSettings.helpTexts.saveDataErrorExecution'),
|
|
|
|
saveDataSuccessExecution: this.$locale.baseText('workflowSettings.helpTexts.saveDataSuccessExecution'),
|
|
|
|
saveExecutionProgress: this.$locale.baseText('workflowSettings.helpTexts.saveExecutionProgress'),
|
|
|
|
saveManualExecutions: this.$locale.baseText('workflowSettings.helpTexts.saveManualExecutions'),
|
|
|
|
executionTimeoutToggle: this.$locale.baseText('workflowSettings.helpTexts.executionTimeoutToggle'),
|
|
|
|
executionTimeout: this.$locale.baseText('workflowSettings.helpTexts.executionTimeout'),
|
2022-10-26 05:59:54 -07:00
|
|
|
workflowCallerPolicy: this.$locale.baseText('workflowSettings.helpTexts.workflowCallerPolicy'),
|
|
|
|
workflowCallerIds: this.$locale.baseText('workflowSettings.helpTexts.workflowCallerIds'),
|
2019-06-23 03:35:23 -07:00
|
|
|
},
|
|
|
|
defaultValues: {
|
|
|
|
timezone: 'America/New_York',
|
2019-07-10 11:53:13 -07:00
|
|
|
saveDataErrorExecution: 'all',
|
|
|
|
saveDataSuccessExecution: 'all',
|
2021-02-08 23:59:32 -08:00
|
|
|
saveExecutionProgress: false,
|
2019-07-10 09:06:26 -07:00
|
|
|
saveManualExecutions: false,
|
2022-10-26 05:59:54 -07:00
|
|
|
workflowCallerPolicy: '',
|
2019-06-23 03:35:23 -07:00
|
|
|
},
|
2022-10-26 05:59:54 -07:00
|
|
|
workflowCallerPolicyOptions: [] as Array<{ key: string, value: string }>,
|
2019-07-10 11:53:13 -07:00
|
|
|
saveDataErrorExecutionOptions: [] as Array<{ key: string, value: string }>,
|
|
|
|
saveDataSuccessExecutionOptions: [] as Array<{ key: string, value: string }>,
|
2021-02-08 23:59:32 -08:00
|
|
|
saveExecutionProgressOptions: [] as Array<{ key: string | boolean, value: string }>,
|
2019-06-23 03:35:23 -07:00
|
|
|
saveManualOptions: [] as Array<{ key: string | boolean, value: string }>,
|
|
|
|
timezones: [] as Array<{ key: string, value: string }>,
|
2019-07-10 12:01:22 -07:00
|
|
|
workflowSettings: {} as IWorkflowSettings,
|
2019-06-23 03:35:23 -07:00
|
|
|
workflows: [] as IWorkflowShortResponse[],
|
2022-11-04 06:04:31 -07:00
|
|
|
executionTimeout: 0,
|
|
|
|
maxExecutionTimeout: 0,
|
2020-07-29 05:12:54 -07:00
|
|
|
timeoutHMS: { hours: 0, minutes: 0, seconds: 0 } as ITimeoutHMS,
|
2021-09-22 00:23:37 -07:00
|
|
|
modalBus: new Vue(),
|
2021-10-18 20:57:49 -07:00
|
|
|
WORKFLOW_SETTINGS_MODAL_KEY,
|
2019-06-23 03:35:23 -07:00
|
|
|
};
|
|
|
|
},
|
2021-10-26 16:54:03 -07:00
|
|
|
|
|
|
|
computed: {
|
2022-11-04 06:04:31 -07:00
|
|
|
...mapStores(
|
|
|
|
useRootStore,
|
|
|
|
useSettingsStore,
|
|
|
|
useWorkflowsStore,
|
|
|
|
),
|
|
|
|
workflowName(): string {
|
|
|
|
return this.workflowsStore.workflowName;
|
|
|
|
},
|
|
|
|
workflowId(): string {
|
|
|
|
return this.workflowsStore.workflowId;
|
|
|
|
},
|
2022-10-26 05:59:54 -07:00
|
|
|
isWorkflowSharingEnabled(): boolean {
|
2022-11-04 06:04:31 -07:00
|
|
|
return this.settingsStore.isWorkflowSharingEnabled;
|
2022-10-26 05:59:54 -07:00
|
|
|
},
|
2021-10-26 16:54:03 -07:00
|
|
|
},
|
2021-09-22 00:23:37 -07:00
|
|
|
async mounted () {
|
2022-11-04 06:04:31 -07:00
|
|
|
this.executionTimeout = this.rootStore.executionTimeout;
|
|
|
|
this.maxExecutionTimeout = this.rootStore.maxExecutionTimeout;
|
|
|
|
|
2022-10-26 01:02:56 -07:00
|
|
|
if (!this.workflowId || this.workflowId === PLACEHOLDER_EMPTY_WORKFLOW_ID) {
|
2021-09-22 00:23:37 -07:00
|
|
|
this.$showMessage({
|
|
|
|
title: 'No workflow active',
|
|
|
|
message: `No workflow active to display settings of.`,
|
|
|
|
type: 'error',
|
|
|
|
duration: 0,
|
|
|
|
});
|
|
|
|
this.closeDialog();
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2022-11-04 06:04:31 -07:00
|
|
|
this.defaultValues.saveDataErrorExecution = this.settingsStore.saveDataErrorExecution;
|
|
|
|
this.defaultValues.saveDataSuccessExecution = this.settingsStore.saveDataSuccessExecution;
|
|
|
|
this.defaultValues.saveManualExecutions = this.settingsStore.saveManualExecutions;
|
|
|
|
this.defaultValues.timezone = this.rootStore.timezone;
|
|
|
|
this.defaultValues.workflowCallerPolicy = this.settingsStore.workflowCallerPolicyDefaultOption;
|
2021-09-22 00:23:37 -07:00
|
|
|
|
|
|
|
this.isLoading = true;
|
|
|
|
const promises = [];
|
|
|
|
promises.push(this.loadWorkflows());
|
|
|
|
promises.push(this.loadSaveDataErrorExecutionOptions());
|
|
|
|
promises.push(this.loadSaveDataSuccessExecutionOptions());
|
|
|
|
promises.push(this.loadSaveExecutionProgressOptions());
|
|
|
|
promises.push(this.loadSaveManualOptions());
|
|
|
|
promises.push(this.loadTimezones());
|
2022-10-26 05:59:54 -07:00
|
|
|
promises.push(this.loadWorkflowCallerPolicyOptions());
|
2021-09-22 00:23:37 -07:00
|
|
|
|
|
|
|
try {
|
|
|
|
await Promise.all(promises);
|
|
|
|
} catch (error) {
|
|
|
|
this.$showError(error, 'Problem loading settings', 'The following error occurred loading the data:');
|
|
|
|
}
|
|
|
|
|
2022-11-04 06:04:31 -07:00
|
|
|
const workflowSettings = deepCopy(this.workflowsStore.workflowSettings) as IWorkflowSettings;
|
2021-09-22 00:23:37 -07:00
|
|
|
|
|
|
|
if (workflowSettings.timezone === undefined) {
|
|
|
|
workflowSettings.timezone = 'DEFAULT';
|
|
|
|
}
|
|
|
|
if (workflowSettings.saveDataErrorExecution === undefined) {
|
|
|
|
workflowSettings.saveDataErrorExecution = 'DEFAULT';
|
|
|
|
}
|
|
|
|
if (workflowSettings.saveDataSuccessExecution === undefined) {
|
|
|
|
workflowSettings.saveDataSuccessExecution = 'DEFAULT';
|
|
|
|
}
|
|
|
|
if (workflowSettings.saveExecutionProgress === undefined) {
|
|
|
|
workflowSettings.saveExecutionProgress = 'DEFAULT';
|
|
|
|
}
|
|
|
|
if (workflowSettings.saveManualExecutions === undefined) {
|
2022-11-04 06:04:31 -07:00
|
|
|
workflowSettings.saveManualExecutions = this.defaultValues.saveManualExecutions;
|
2021-09-22 00:23:37 -07:00
|
|
|
}
|
2022-10-26 05:59:54 -07:00
|
|
|
if (workflowSettings.callerPolicy === undefined) {
|
2022-11-04 06:04:31 -07:00
|
|
|
workflowSettings.callerPolicy = this.defaultValues.workflowCallerPolicy as WorkflowCallerPolicyDefaultOption;
|
2022-10-26 05:59:54 -07:00
|
|
|
}
|
2021-09-22 00:23:37 -07:00
|
|
|
if (workflowSettings.executionTimeout === undefined) {
|
2022-11-04 06:04:31 -07:00
|
|
|
workflowSettings.executionTimeout = this.rootStore.executionTimeout;
|
2021-09-22 00:23:37 -07:00
|
|
|
}
|
|
|
|
if (workflowSettings.maxExecutionTimeout === undefined) {
|
2022-11-04 06:04:31 -07:00
|
|
|
workflowSettings.maxExecutionTimeout = this.rootStore.maxExecutionTimeout;
|
2021-09-22 00:23:37 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
Vue.set(this, 'workflowSettings', workflowSettings);
|
|
|
|
this.timeoutHMS = this.convertToHMS(workflowSettings.executionTimeout);
|
|
|
|
this.isLoading = false;
|
|
|
|
|
|
|
|
this.$externalHooks().run('workflowSettings.dialogVisibleChanged', { dialogVisible: true });
|
2022-11-04 06:04:31 -07:00
|
|
|
this.$telemetry.track('User opened workflow settings', { workflow_id: this.workflowsStore.workflowId });
|
2019-06-23 03:35:23 -07:00
|
|
|
},
|
|
|
|
methods: {
|
2022-10-26 05:59:54 -07:00
|
|
|
onCallerIdsInput(str: string) {
|
|
|
|
this.workflowSettings.callerIds = /^[0-9,\s]+$/.test(str)
|
|
|
|
? str
|
|
|
|
: str.replace(/[^0-9,\s]/g, '');
|
|
|
|
},
|
2019-06-23 03:35:23 -07:00
|
|
|
closeDialog () {
|
2021-09-22 00:23:37 -07:00
|
|
|
this.modalBus.$emit('close');
|
2021-10-18 20:57:49 -07:00
|
|
|
this.$externalHooks().run('workflowSettings.dialogVisibleChanged', { dialogVisible: false });
|
2019-06-23 03:35:23 -07:00
|
|
|
},
|
2021-08-29 04:36:17 -07:00
|
|
|
setTimeout (key: string, value: string) {
|
|
|
|
const time = value ? parseInt(value, 10) : 0;
|
|
|
|
|
|
|
|
this.timeoutHMS = {
|
|
|
|
...this.timeoutHMS,
|
|
|
|
[key]: time,
|
|
|
|
};
|
|
|
|
},
|
2022-10-26 05:59:54 -07:00
|
|
|
async loadWorkflowCallerPolicyOptions () {
|
|
|
|
this.workflowCallerPolicyOptions = [
|
|
|
|
{
|
|
|
|
key: 'any',
|
|
|
|
value: this.$locale.baseText('workflowSettings.callerPolicy.options.any'),
|
|
|
|
},
|
|
|
|
{
|
|
|
|
key: 'none',
|
|
|
|
value: this.$locale.baseText('workflowSettings.callerPolicy.options.none'),
|
|
|
|
},
|
|
|
|
{
|
|
|
|
key: 'workflowsFromAList',
|
|
|
|
value: this.$locale.baseText('workflowSettings.callerPolicy.options.workflowsFromAList'),
|
|
|
|
},
|
|
|
|
];
|
|
|
|
},
|
2019-07-10 11:53:13 -07:00
|
|
|
async loadSaveDataErrorExecutionOptions () {
|
|
|
|
this.saveDataErrorExecutionOptions.length = 0;
|
2019-07-10 12:01:22 -07:00
|
|
|
this.saveDataErrorExecutionOptions.push.apply( // eslint-disable-line no-useless-call
|
2019-07-10 11:53:13 -07:00
|
|
|
this.saveDataErrorExecutionOptions, [
|
|
|
|
{
|
|
|
|
key: 'DEFAULT',
|
2021-12-15 04:16:53 -08:00
|
|
|
value: this.$locale.baseText(
|
2021-11-10 10:41:40 -08:00
|
|
|
'workflowSettings.saveDataErrorExecutionOptions.defaultSave',
|
|
|
|
{
|
|
|
|
interpolate: {
|
|
|
|
defaultValue: this.defaultValues.saveDataErrorExecution === 'all'
|
2021-12-15 04:16:53 -08:00
|
|
|
? this.$locale.baseText('workflowSettings.saveDataErrorExecutionOptions.save')
|
2022-04-14 23:22:58 -07:00
|
|
|
: this.$locale.baseText('workflowSettings.saveDataErrorExecutionOptions.doNotSave'),
|
2021-11-10 10:41:40 -08:00
|
|
|
},
|
|
|
|
},
|
|
|
|
),
|
2019-07-10 11:53:13 -07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
key: 'all',
|
2021-12-15 04:16:53 -08:00
|
|
|
value: this.$locale.baseText('workflowSettings.saveDataErrorExecutionOptions.save'),
|
2019-07-10 11:53:13 -07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
key: 'none',
|
2021-12-15 04:16:53 -08:00
|
|
|
value: this.$locale.baseText('workflowSettings.saveDataErrorExecutionOptions.doNotSave'),
|
2019-07-10 12:01:22 -07:00
|
|
|
},
|
2019-12-29 13:02:21 -08:00
|
|
|
],
|
2019-07-10 11:53:13 -07:00
|
|
|
);
|
|
|
|
},
|
|
|
|
async loadSaveDataSuccessExecutionOptions () {
|
|
|
|
this.saveDataSuccessExecutionOptions.length = 0;
|
2019-07-10 12:01:22 -07:00
|
|
|
this.saveDataSuccessExecutionOptions.push.apply( // eslint-disable-line no-useless-call
|
2019-07-10 11:53:13 -07:00
|
|
|
this.saveDataSuccessExecutionOptions, [
|
|
|
|
{
|
|
|
|
key: 'DEFAULT',
|
2021-12-15 04:16:53 -08:00
|
|
|
value: this.$locale.baseText(
|
2021-11-10 10:41:40 -08:00
|
|
|
'workflowSettings.saveDataSuccessExecutionOptions.defaultSave',
|
|
|
|
{
|
|
|
|
interpolate: {
|
|
|
|
defaultValue: this.defaultValues.saveDataSuccessExecution === 'all'
|
2021-12-15 04:16:53 -08:00
|
|
|
? this.$locale.baseText('workflowSettings.saveDataSuccessExecutionOptions.save')
|
|
|
|
: this.$locale.baseText('workflowSettings.saveDataSuccessExecutionOptions.doNotSave'),
|
2021-11-10 10:41:40 -08:00
|
|
|
},
|
|
|
|
},
|
|
|
|
),
|
2019-07-10 11:53:13 -07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
key: 'all',
|
2021-12-15 04:16:53 -08:00
|
|
|
value: this.$locale.baseText('workflowSettings.saveDataSuccessExecutionOptions.save'),
|
2019-07-10 11:53:13 -07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
key: 'none',
|
2021-12-15 04:16:53 -08:00
|
|
|
value: this.$locale.baseText('workflowSettings.saveDataSuccessExecutionOptions.doNotSave'),
|
2019-07-10 12:01:22 -07:00
|
|
|
},
|
2019-12-29 13:02:21 -08:00
|
|
|
],
|
2019-07-10 11:53:13 -07:00
|
|
|
);
|
|
|
|
},
|
2021-02-08 23:59:32 -08:00
|
|
|
async loadSaveExecutionProgressOptions () {
|
|
|
|
this.saveExecutionProgressOptions.length = 0;
|
|
|
|
this.saveExecutionProgressOptions.push.apply( // eslint-disable-line no-useless-call
|
|
|
|
this.saveExecutionProgressOptions, [
|
|
|
|
{
|
|
|
|
key: 'DEFAULT',
|
2021-12-15 04:16:53 -08:00
|
|
|
value: this.$locale.baseText(
|
2021-11-10 10:41:40 -08:00
|
|
|
'workflowSettings.saveExecutionProgressOptions.defaultSave',
|
|
|
|
{
|
|
|
|
interpolate: {
|
2021-12-15 04:16:53 -08:00
|
|
|
defaultValue: this.defaultValues.saveExecutionProgress ? this.$locale.baseText('workflowSettings.saveExecutionProgressOptions.yes') : this.$locale.baseText('workflowSettings.saveExecutionProgressOptions.no'),
|
2021-11-10 10:41:40 -08:00
|
|
|
},
|
|
|
|
},
|
|
|
|
),
|
2021-02-08 23:59:32 -08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
key: true,
|
2021-12-15 04:16:53 -08:00
|
|
|
value: this.$locale.baseText('workflowSettings.saveExecutionProgressOptions.yes'),
|
2021-02-08 23:59:32 -08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
key: false,
|
2021-12-15 04:16:53 -08:00
|
|
|
value: this.$locale.baseText('workflowSettings.saveExecutionProgressOptions.no'),
|
2021-02-08 23:59:32 -08:00
|
|
|
},
|
|
|
|
],
|
|
|
|
);
|
|
|
|
},
|
2019-06-23 03:35:23 -07:00
|
|
|
async loadSaveManualOptions () {
|
|
|
|
this.saveManualOptions.length = 0;
|
|
|
|
this.saveManualOptions.push({
|
|
|
|
key: 'DEFAULT',
|
2021-12-15 04:16:53 -08:00
|
|
|
value: this.$locale.baseText(
|
2021-11-10 10:41:40 -08:00
|
|
|
'workflowSettings.saveManualOptions.defaultSave',
|
|
|
|
{
|
|
|
|
interpolate: {
|
2021-12-15 04:16:53 -08:00
|
|
|
defaultValue: this.defaultValues.saveManualExecutions ? this.$locale.baseText('workflowSettings.saveManualOptions.yes') : this.$locale.baseText('workflowSettings.saveManualOptions.no'),
|
2021-11-10 10:41:40 -08:00
|
|
|
},
|
|
|
|
},
|
|
|
|
),
|
2019-06-23 03:35:23 -07:00
|
|
|
});
|
|
|
|
this.saveManualOptions.push({
|
|
|
|
key: true,
|
2021-12-15 04:16:53 -08:00
|
|
|
value: this.$locale.baseText('workflowSettings.saveManualOptions.yes'),
|
2019-06-23 03:35:23 -07:00
|
|
|
});
|
|
|
|
this.saveManualOptions.push({
|
|
|
|
key: false,
|
2021-12-15 04:16:53 -08:00
|
|
|
value: this.$locale.baseText('workflowSettings.saveManualOptions.no'),
|
2019-06-23 03:35:23 -07:00
|
|
|
});
|
|
|
|
},
|
2019-07-10 11:53:13 -07:00
|
|
|
|
2019-06-23 03:35:23 -07:00
|
|
|
async loadTimezones () {
|
|
|
|
if (this.timezones.length !== 0) {
|
|
|
|
// Data got already loaded
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
const timezones = await this.restApi().getTimezones();
|
|
|
|
|
|
|
|
let defaultTimezoneValue = timezones[this.defaultValues.timezone] as string | undefined;
|
|
|
|
if (defaultTimezoneValue === undefined) {
|
2021-12-15 04:16:53 -08:00
|
|
|
defaultTimezoneValue = this.$locale.baseText('workflowSettings.defaultTimezoneNotValid');
|
2019-06-23 03:35:23 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
this.timezones.push({
|
|
|
|
key: 'DEFAULT',
|
2021-12-15 04:16:53 -08:00
|
|
|
value: this.$locale.baseText(
|
2021-11-10 10:41:40 -08:00
|
|
|
'workflowSettings.defaultTimezone',
|
|
|
|
{ interpolate: { defaultTimezoneValue } },
|
|
|
|
),
|
2019-06-23 03:35:23 -07:00
|
|
|
});
|
|
|
|
for (const timezone of Object.keys(timezones)) {
|
|
|
|
this.timezones.push({
|
|
|
|
key: timezone,
|
|
|
|
value: timezones[timezone] as string,
|
|
|
|
});
|
|
|
|
}
|
|
|
|
},
|
|
|
|
async loadWorkflows () {
|
|
|
|
const workflows = await this.restApi().getWorkflows();
|
|
|
|
workflows.sort((a, b) => {
|
|
|
|
if (a.name.toLowerCase() < b.name.toLowerCase()) {
|
|
|
|
return -1;
|
|
|
|
}
|
|
|
|
if (a.name.toLowerCase() > b.name.toLowerCase()) {
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
return 0;
|
|
|
|
});
|
|
|
|
|
|
|
|
// @ts-ignore
|
|
|
|
workflows.unshift({
|
|
|
|
id: undefined as unknown as string,
|
2021-12-15 04:16:53 -08:00
|
|
|
name: this.$locale.baseText('workflowSettings.noWorkflow'),
|
2019-06-23 03:35:23 -07:00
|
|
|
});
|
|
|
|
|
|
|
|
Vue.set(this, 'workflows', workflows);
|
|
|
|
},
|
|
|
|
async saveSettings () {
|
|
|
|
// Set that the active state should be changed
|
|
|
|
const data: IWorkflowDataUpdate = {
|
|
|
|
settings: this.workflowSettings,
|
|
|
|
};
|
|
|
|
|
2020-07-29 05:12:54 -07:00
|
|
|
// Convert hours, minutes, seconds into seconds for the workflow timeout
|
|
|
|
const { hours, minutes, seconds } = this.timeoutHMS;
|
|
|
|
data.settings!.executionTimeout =
|
|
|
|
data.settings!.executionTimeout !== -1
|
|
|
|
? hours * 3600 + minutes * 60 + seconds
|
|
|
|
: -1;
|
|
|
|
|
|
|
|
if (data.settings!.executionTimeout === 0) {
|
2021-11-10 10:41:40 -08:00
|
|
|
this.$showError(
|
2021-12-15 04:16:53 -08:00
|
|
|
new Error(this.$locale.baseText('workflowSettings.showError.saveSettings1.errorMessage')),
|
|
|
|
this.$locale.baseText('workflowSettings.showError.saveSettings1.title'),
|
|
|
|
this.$locale.baseText('workflowSettings.showError.saveSettings1.message') + ':',
|
2021-11-10 10:41:40 -08:00
|
|
|
);
|
2020-07-29 05:12:54 -07:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
// @ts-ignore
|
|
|
|
if (data.settings!.executionTimeout > this.workflowSettings.maxExecutionTimeout) {
|
|
|
|
const { hours, minutes, seconds } = this.convertToHMS(this.workflowSettings.maxExecutionTimeout as number);
|
2021-11-10 10:41:40 -08:00
|
|
|
this.$showError(
|
|
|
|
new Error(
|
2021-12-15 04:16:53 -08:00
|
|
|
this.$locale.baseText(
|
2021-11-10 10:41:40 -08:00
|
|
|
'workflowSettings.showError.saveSettings2.errorMessage',
|
|
|
|
{
|
|
|
|
interpolate: {
|
|
|
|
hours: hours.toString(),
|
|
|
|
minutes: minutes.toString(),
|
|
|
|
seconds: seconds.toString(),
|
|
|
|
},
|
|
|
|
},
|
|
|
|
),
|
|
|
|
),
|
2021-12-15 04:16:53 -08:00
|
|
|
this.$locale.baseText('workflowSettings.showError.saveSettings2.title'),
|
|
|
|
this.$locale.baseText('workflowSettings.showError.saveSettings2.message') + ':',
|
2021-11-10 10:41:40 -08:00
|
|
|
);
|
2020-07-29 05:12:54 -07:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
delete data.settings!.maxExecutionTimeout;
|
|
|
|
|
2019-06-23 03:35:23 -07:00
|
|
|
this.isLoading = true;
|
2022-11-04 06:04:31 -07:00
|
|
|
data.hash = this.workflowsStore.workflowHash;
|
2019-06-23 03:35:23 -07:00
|
|
|
|
|
|
|
try {
|
2022-10-31 02:35:24 -07:00
|
|
|
const workflow = await this.restApi().updateWorkflow(this.$route.params.name, data);
|
2022-11-08 09:05:50 -08:00
|
|
|
this.workflowsStore.setWorkflowHash(workflow.hash);
|
2019-06-23 03:35:23 -07:00
|
|
|
} catch (error) {
|
2021-11-10 10:41:40 -08:00
|
|
|
this.$showError(
|
|
|
|
error,
|
2021-12-15 04:16:53 -08:00
|
|
|
this.$locale.baseText('workflowSettings.showError.saveSettings3.title'),
|
2021-11-10 10:41:40 -08:00
|
|
|
);
|
2019-06-23 03:35:23 -07:00
|
|
|
this.isLoading = false;
|
|
|
|
return;
|
|
|
|
}
|
2019-07-10 11:53:13 -07:00
|
|
|
|
|
|
|
// Get the settings without the defaults set for local workflow settings
|
|
|
|
const localWorkflowSettings: IWorkflowSettings = {};
|
|
|
|
for (const key of Object.keys(this.workflowSettings)) {
|
|
|
|
if (this.workflowSettings[key] !== 'DEFAULT') {
|
|
|
|
localWorkflowSettings[key] = this.workflowSettings[key];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-11-04 06:04:31 -07:00
|
|
|
const oldSettings = deepCopy(this.workflowsStore.workflowSettings);
|
2021-05-05 17:46:33 -07:00
|
|
|
|
2022-11-04 06:04:31 -07:00
|
|
|
this.workflowsStore.setWorkflowSettings(localWorkflowSettings);
|
2019-06-23 03:35:23 -07:00
|
|
|
|
|
|
|
this.isLoading = false;
|
|
|
|
|
|
|
|
this.$showMessage({
|
2021-12-15 04:16:53 -08:00
|
|
|
title: this.$locale.baseText('workflowSettings.showMessage.saveSettings.title'),
|
2019-06-23 03:35:23 -07:00
|
|
|
type: 'success',
|
|
|
|
});
|
|
|
|
|
|
|
|
this.closeDialog();
|
2021-08-29 04:36:17 -07:00
|
|
|
|
2021-05-05 17:46:33 -07:00
|
|
|
this.$externalHooks().run('workflowSettings.saveSettings', { oldSettings });
|
2022-11-04 06:04:31 -07:00
|
|
|
this.$telemetry.track('User updated workflow settings', { workflow_id: this.workflowsStore.workflowId });
|
2019-06-23 03:35:23 -07:00
|
|
|
},
|
2020-07-29 05:12:54 -07:00
|
|
|
toggleTimeout() {
|
|
|
|
this.workflowSettings.executionTimeout = this.workflowSettings.executionTimeout === -1 ? 0 : -1;
|
|
|
|
},
|
|
|
|
convertToHMS(num: number): ITimeoutHMS {
|
|
|
|
if (num > 0) {
|
|
|
|
const hours = Math.floor(num / 3600);
|
2022-09-23 07:14:28 -07:00
|
|
|
const remainder = num % 3600;
|
2020-07-29 05:12:54 -07:00
|
|
|
const minutes = Math.floor(remainder / 60);
|
|
|
|
const seconds = remainder % 60;
|
|
|
|
return { hours, minutes, seconds };
|
|
|
|
}
|
|
|
|
return { hours: 0, minutes: 0, seconds: 0 };
|
|
|
|
},
|
2019-06-23 03:35:23 -07:00
|
|
|
},
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style scoped lang="scss">
|
|
|
|
.workflow-settings {
|
2021-10-27 12:55:37 -07:00
|
|
|
font-size: var(--font-size-s);
|
2019-06-23 03:35:23 -07:00
|
|
|
.el-row {
|
|
|
|
padding: 0.25em 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.setting-info {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.setting-name {
|
|
|
|
line-height: 32px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.setting-name:hover {
|
|
|
|
.setting-info {
|
|
|
|
display: inline;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-08-29 04:36:17 -07:00
|
|
|
.timeout-input {
|
|
|
|
margin-left: 5px;
|
2020-07-29 05:12:54 -07:00
|
|
|
}
|
|
|
|
|
2019-06-23 03:35:23 -07:00
|
|
|
</style>
|