From 927e6702140b7f301454a7d4cce7b620680f89f6 Mon Sep 17 00:00:00 2001 From: fengxuefeng Date: Thu, 6 May 2021 19:26:15 +0800 Subject: [PATCH] Gray out the Continue button After the last step --- mindinsight/ui/src/mixins/debugger-mixin.vue | 3 +++ mindinsight/ui/src/views/debugger/debugger.vue | 7 +++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/mindinsight/ui/src/mixins/debugger-mixin.vue b/mindinsight/ui/src/mixins/debugger-mixin.vue index 679a9633..351ef5df 100644 --- a/mindinsight/ui/src/mixins/debugger-mixin.vue +++ b/mindinsight/ui/src/mixins/debugger-mixin.vue @@ -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 && diff --git a/mindinsight/ui/src/views/debugger/debugger.vue b/mindinsight/ui/src/views/debugger/debugger.vue index e0db145b..64e6f568 100644 --- a/mindinsight/ui/src/views/debugger/debugger.vue +++ b/mindinsight/ui/src/views/debugger/debugger.vue @@ -289,6 +289,7 @@ limitations under the License. placement="top-start"> @@ -296,13 +297,15 @@ limitations under the License. {{ $t('public.sure') }}
{{$t('debugger.continue')}}