From 47a857cd5b52d2cd741e9eb56daee0a9f45f1e83 Mon Sep 17 00:00:00 2001 From: nuintun Date: Wed, 13 Jan 2016 18:17:27 +0800 Subject: [PATCH] update files --- static/js/components/app-main/index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/static/js/components/app-main/index.js b/static/js/components/app-main/index.js index 96082fe..990b1d3 100644 --- a/static/js/components/app-main/index.js +++ b/static/js/components/app-main/index.js @@ -99,6 +99,8 @@ function closeXTerm(name){ } } +var status = 0; + module.exports = Vue.component('app-main', { template: fs.readFileSync(path.join(__dirname, 'app-main.html')).toString(), props: { @@ -161,7 +163,9 @@ module.exports = Vue.component('app-main', { name: name, value: command } - }, 'start'); + }, status === 0 ? 'start' : 'stop'); + + status = status === 0 ? 1 : 0; }, setting: function (){ this.showSetting = true;