ExtraFile/Commit的判定
This commit is contained in:
parent
bed2bb3c86
commit
6b00cfa8e0
|
|
@ -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 });
|
||||
|
|
|
|||
|
|
@ -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 });
|
||||
|
|
|
|||
|
|
@ -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 });
|
||||
|
|
|
|||
Loading…
Reference in New Issue