diff options
author | Phil Hughes <me@iamphill.com> | 2019-01-11 13:14:51 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2019-01-11 13:14:51 +0300 |
commit | 8d1683f7b0173040b660a9b61e9a2d5389e1344a (patch) | |
tree | 281448892732f68a115f025c04078b7f82d6001e /app/assets/javascripts/notebook/cells/prompt.vue | |
parent | b682a6f8981d303e7ee7ecc4273768ee6ed66864 (diff) |
Support multiple outputs in Jupyter notebooks
Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/31910, https://gitlab.com/gitlab-org/gitlab-ce/issues/32588
Diffstat (limited to 'app/assets/javascripts/notebook/cells/prompt.vue')
-rw-r--r-- | app/assets/javascripts/notebook/cells/prompt.vue | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/app/assets/javascripts/notebook/cells/prompt.vue b/app/assets/javascripts/notebook/cells/prompt.vue index 3f1f239a806..1eeb61844a4 100644 --- a/app/assets/javascripts/notebook/cells/prompt.vue +++ b/app/assets/javascripts/notebook/cells/prompt.vue @@ -11,18 +11,26 @@ export default { required: false, default: 0, }, + showOutput: { + type: Boolean, + required: false, + default: true, + }, }, computed: { hasKeys() { return this.type !== '' && this.count; }, + showTypeText() { + return this.type && this.count && this.showOutput; + }, }, }; </script> <template> <div class="prompt"> - <span v-if="hasKeys"> {{ type }} [{{ count }}]: </span> + <span v-if="showTypeText"> {{ type }} [{{ count }}]: </span> </div> </template> |