Skip to content

Commit 1436d81

Browse files
authored
Merge pull request #11 from xtt55/fix-origin
Thank you very much, remove the hdfs read-only limit, so that the workspace can also be stored with hdfs
2 parents 15f2f7b + afea898 commit 1436d81

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

src/js/module/workbench/script/editor.vue

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,15 @@
3737
<span class="navbar-item-name">停止</span>
3838
</div>
3939
<div
40-
v-if="!script.readOnly && !isHdfs"
40+
v-if="!script.readOnly"
4141
class="workbench-body-navbar-item"
4242
title="Ctrl+S"
4343
@click="save">
4444
<Icon type="md-checkmark" />
4545
<span class="navbar-item-name">保存</span>
4646
</div>
4747
<div
48-
v-if="!script.readOnly && !isHdfs && isSupport"
48+
v-if="!script.readOnly && isSupport"
4949
class="workbench-body-navbar-item"
5050
@click="config">
5151
<Icon type="ios-build" />
@@ -111,9 +111,6 @@ export default {
111111
listenResource() {
112112
return this.script.running;
113113
},
114-
isHdfs() {
115-
return this.work.filepath.indexOf('hdfs') === 0;
116-
},
117114
isSupport() {
118115
return this.script.executable;
119116
}

src/js/module/workbench/script/script.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -757,9 +757,8 @@ export default {
757757
scriptContent: this.script.data,
758758
params: this.formatParams(this.script.params),
759759
};
760-
const isHdfs = this.work.filepath.indexOf('hdfs') === 0;
761760
if (this.script.data) {
762-
if (this.work.unsave && !isHdfs) {
761+
if (this.work.unsave) {
763762
if (this.work.filepath) {
764763
this.work.unsave = false;
765764
this.saveLoading = true;

0 commit comments

Comments
 (0)