ExtraFile/Commit的判定

This commit is contained in:
Xu Chang 2024-03-20 12:12:01 +08:00
parent bed2bb3c86
commit 6b00cfa8e0
3 changed files with 6 additions and 6 deletions

View File

@ -3,9 +3,9 @@ import { Button } from 'antd-mobile';
export default function render(props) {
const { state, oakExecutable, oakExecuting, oakDirty, size, block, type, executeText, failureIds, buttonProps, } = props.data;
const { t, onSubmit } = props.methods;
const disabled = (oakExecuting ||
const disabled = oakExecuting ||
['uploading'].includes(state) ||
(oakExecutable !== true && ['uploaded'].includes(state))) && !failureIds;
oakExecutable !== true && !failureIds;
let text = executeText || t('common::submit');
if (oakExecuting) {
text = t('executing', { text });

View File

@ -3,9 +3,9 @@ import { Button } from 'antd';
export default function render(props) {
const { state, oakExecutable, oakExecuting, size, block, type, failureIds, executeText, buttonProps = {}, } = props.data;
const { t, onSubmit } = props.methods;
const disabled = (oakExecuting ||
const disabled = oakExecuting ||
['uploading'].includes(state) ||
(oakExecutable !== true && ['uploaded'].includes(state))) && !failureIds;
oakExecutable !== true && !failureIds;
let text = executeText || t('common::submit');
if (oakExecuting) {
text = t('executing', { text });

View File

@ -37,9 +37,9 @@ export default function render(
} = props.data;
const { t, onSubmit } = props.methods;
const disabled = (oakExecuting ||
const disabled = oakExecuting ||
['uploading'].includes(state) ||
(oakExecutable !== true && ['uploaded'].includes(state))) && !failureIds;
oakExecutable !== true && !failureIds;
let text = executeText || t('common::submit');
if (oakExecuting) {
text = t('executing', { text });