Browse Source

!1330 Gray out the Continue button After the last step

From: @feng_xue_feng
Reviewed-by: @yelihua,@yelihua,@ouwenchang
Signed-off-by: @ouwenchang
pull/1330/MERGE
mindspore-ci-bot Gitee 4 years ago
parent
commit
c412adecf8
2 changed files with 8 additions and 2 deletions
  1. +3
    -0
      mindinsight/ui/src/mixins/debugger-mixin.vue
  2. +5
    -2
      mindinsight/ui/src/views/debugger/debugger.vue

+ 3
- 0
mindinsight/ui/src/mixins/debugger-mixin.vue View File

@@ -1436,6 +1436,9 @@ export default {
this.debuggerVersion = res.data.metadata.debugger_version;
}
this.metadata = res.data.metadata;
if (!this.trainId) {
this.metadata.total_step_num = 2147483648;
}
if (
res &&
res.data &&


+ 5
- 2
mindinsight/ui/src/views/debugger/debugger.vue View File

@@ -289,6 +289,7 @@ limitations under the License.
placement="top-start">
<el-input v-model="step"
:placeholder="$t('debugger.inputStep')"
:disabled="metadata.step === metadata.total_step_num && !!trainId"
@input="stepChange"
@keyup.native.enter="control(0)">
</el-input>
@@ -296,13 +297,15 @@ limitations under the License.
<el-button type="primary"
size="mini"
class="custom-btn green"
:disabled="!(step && metadata.state === state.waiting)"
:disabled="!(step && metadata.state === state.waiting)
|| (metadata.step === metadata.total_step_num && !!trainId)"
@click="control(0)">{{ $t('public.sure') }}</el-button>
</div>
<div class="btn-two">
<el-button size="mini"
class="custom-btn white"
:disabled="metadata.state !== state.waiting"
:disabled="metadata.state !== state.waiting
|| (metadata.step === metadata.total_step_num && !!trainId)"
@click="control(1)">{{$t('debugger.continue')}}</el-button>
<el-button size="mini"
class="custom-btn white"


Loading…
Cancel
Save