Skip to content

Commit fa2451c

Browse files
青羽青羽
authored andcommitted
masking setting button when unsupport script
1 parent 933f3b4 commit fa2451c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
<span class="navbar-item-name">保存</span>
4646
</div>
4747
<div
48-
v-if="!script.readOnly && !isHdfs"
48+
v-if="!script.readOnly && !isHdfs && isSupport"
4949
class="workbench-body-navbar-item"
5050
@click="config">
5151
<Icon type="ios-build" />
@@ -114,6 +114,9 @@ export default {
114114
isHdfs() {
115115
return this.work.filepath.indexOf('hdfs') === 0;
116116
},
117+
isSupport() {
118+
return this.script.executable;
119+
}
117120
},
118121
watch: {
119122
listenResource(val) {

0 commit comments

Comments
 (0)