Browse Source

add refresh

master
zeus 3 years ago
parent
commit
8b63846761
  1. 2
      dist/index.html
  2. 2
      dist/js/app.65c40ae7.js
  3. 1
      dist/js/app.65c40ae7.js.map
  4. 2
      dist/js/app.b80507d3.js
  5. 1
      dist/js/app.b80507d3.js.map
  6. 11
      src/components/mynetwork/availablemicroservices.vue
  7. 4
      src/components/mynetwork/availableservices.vue
  8. 4
      src/components/mynetwork/customservices.vue
  9. 19
      src/components/mynetwork/dockerservices.vue

2
dist/index.html

@ -1 +1 @@
<!DOCTYPE html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Vue App</title><link href="/css/app.834ff37e.css" rel="preload" as="style"><link href="/css/chunk-vendors.e469b508.css" rel="preload" as="style"><link href="/js/app.65c40ae7.js" rel="preload" as="script"><link href="/js/chunk-vendors.dd2c43c6.js" rel="preload" as="script"><link href="/css/chunk-vendors.e469b508.css" rel="stylesheet"><link href="/css/app.834ff37e.css" rel="stylesheet"></head><body><div id="app"></div><script src="/js/chunk-vendors.dd2c43c6.js"></script><script src="/js/app.65c40ae7.js"></script></body></html> <!DOCTYPE html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Vue App</title><link href="/css/app.834ff37e.css" rel="preload" as="style"><link href="/css/chunk-vendors.e469b508.css" rel="preload" as="style"><link href="/js/app.b80507d3.js" rel="preload" as="script"><link href="/js/chunk-vendors.dd2c43c6.js" rel="preload" as="script"><link href="/css/chunk-vendors.e469b508.css" rel="stylesheet"><link href="/css/app.834ff37e.css" rel="stylesheet"></head><body><div id="app"></div><script src="/js/chunk-vendors.dd2c43c6.js"></script><script src="/js/app.b80507d3.js"></script></body></html>

2
dist/js/app.65c40ae7.js

File diff suppressed because one or more lines are too long

1
dist/js/app.65c40ae7.js.map

File diff suppressed because one or more lines are too long

2
dist/js/app.b80507d3.js

File diff suppressed because one or more lines are too long

1
dist/js/app.b80507d3.js.map

File diff suppressed because one or more lines are too long

11
src/components/mynetwork/availablemicroservices.vue

@ -284,9 +284,9 @@
><span class="text-success">Running...</span></button> ><span class="text-success">Running...</span></button>
<button <button
v-else v-else
class=" btn btn-sm text-muted" class=" btn btn-sm text-light"
round round
><span class="text-success">&nbsp;</span></button> ><span class="text-light">&nbsp;-&nbsp;</span></button>
</div> </div>
</div> </div>
@ -796,7 +796,8 @@ export default {
this.$root.$emit('hybrid_install_instance', value) this.$root.$emit('hybrid_install_instance', value)
this.$wait.end('myRunInstancetutor'); this.$wait.end('myRunInstancetutor');
//Vue.nextTick( () => this.$refs.vuetable.refresh()) //Vue.nextTick( () => this.$refs.vuetable.refresh())
this.refreshVuetable() await this.refreshVuetable()
await this.refreshVuetableall()
}else if(action == 'run-item' ){ }else if(action == 'run-item' ){
this.resetcustom() this.resetcustom()
@ -1097,10 +1098,10 @@ info +=' <b>Click on hyperlink opens Directory in new tab</b></p>'
}, },
async refreshVuetable() { async refreshVuetable() {
await this.checkactionrowindexall() await this.checkactionrowindexall()
this.$nextTick(()=>{ //this.$nextTick(()=>{
this.vuetablekeygslot += 1 this.vuetablekeygslot += 1
this.vuetablekeygslotnew += 1 this.vuetablekeygslotnew += 1
}) // })
}, },
playbookinfoShow(value) { playbookinfoShow(value) {
return this.visibility[value]=true return this.visibility[value]=true

4
src/components/mynetwork/availableservices.vue

@ -171,9 +171,9 @@
</button> </button>
<button <button
v-else v-else
class=" btn btn-sm text-muted" class=" btn btn-sm text-light"
round round
><span class="text-success">&nbsp;</span></button> ><span class="text-light">&nbsp;-&nbsp;</span></button>
<!-- <!--
<button <button
v-if="testactionrowindex[props.rowData.swarmlabname] != props.rowIndex && testactionrowindex[props.rowIndex] == props.rowIndex" v-if="testactionrowindex[props.rowData.swarmlabname] != props.rowIndex && testactionrowindex[props.rowIndex] == props.rowIndex"

4
src/components/mynetwork/customservices.vue

@ -196,7 +196,7 @@
v-model="form_visibility" v-model="form_visibility"
@click="onSwitch('Private')" @click="onSwitch('Private')"
> >
<span class="text-muted">Private</span> <span class="text-dark">Private</span>
</button> </button>
</div> </div>
@ -210,7 +210,7 @@
v-model="form_visibility" v-model="form_visibility"
@click="onSwitch('Public')" @click="onSwitch('Public')"
> >
<span class="text-muted">Public</span> <span class="text-dark">Public</span>
</button> </button>
<button <button
class="btn btn-success btn-sm" class="btn btn-success btn-sm"

19
src/components/mynetwork/dockerservices.vue

@ -176,9 +176,24 @@ export default {
width: '50%', width: '50%',
callback: function(value) { callback: function(value) {
var v = `<button type="button" class="btn btn-link text-muted" console.log(this)
const field_microservice = /^microservice-/g;
const field_hybrid = /^hybrid-/g;
const field_storage = /^storage-/g;
if (value.match(field_microservice)) {
var v = `<button type="button" class="btn btn-link text-info"
>${value}</button>` >${value}</button>`
//console.log(this) }else if (value.match(field_hybrid)) {
var v = `<button type="button" class="btn btn-link text-dark"
>${value}</button>`
}else if (value.match(field_storage)) {
var v = `<button type="button" class="btn btn-link text-success"
>${value}</button>`
}else{
var v = `<button type="button" class="btn btn-link text-muted"
>${value}</button>`
}
return v return v
} }
}, },

Loading…
Cancel
Save