Commit dd1ec825 authored by Johannes Winter's avatar Johannes Winter

fix budget display after private/public toggle

log enhancements
parent 6cfc8870
Pipeline #307 passed with stages
in 4 minutes and 42 seconds
......@@ -70,7 +70,7 @@
<loadBudgetModal @repaintChart="$emit('repaintChart',$event)" />
</b-modal>
<b-modal :can-cancel="allowCancel" :active.sync="isEditModalActive" has-modal-card>
<editBudgetModal :showCancel="allowCancel" @repaintChart="$emit('repaintChart',allowCancel ? focus.ID : undefined)" />
<editBudgetModal :showCancel="allowCancel" @repaintChart="$emit('repaintChart',allowCancel ? ($event || focus.ID) : undefined)" />
</b-modal>
</div>
</nav>
......
......@@ -124,7 +124,7 @@ export default {
methods: {
async save() {
this.loading=true
let focus
// console.log('editBudgetModal:');
// console.log(`${this.selectedCurrency}\n${JSON.stringify(this.$store.getters.currency(), null, 4)}`);
......@@ -148,6 +148,7 @@ export default {
if (this.privateStatus != this.$store.getters.privateStatus) {
console.log('Changing private status to: ' + this.privateStatus)
await this.$store.dispatch('togglePrivateMode', this.privateStatus)
focus = this.$store.getters.topProcess()
}
if (this.decimals != this.decimalStatus) {
// console.log(this.$store.getters.stepValue());
......@@ -163,7 +164,7 @@ export default {
}
this.loading=false
this.$parent.close()
this.$emit('repaintChart')
this.$emit('repaintChart', focus)
}
}
}
......
......@@ -1812,7 +1812,7 @@ export default new Vuex.Store({
// console.log(`graph:\n${this.state.graph}`);
var data = $rdf.serialize(undefined, this.state.graph, iri, 'text/turtle')
console.log(iri);
console.log(`Saving resource: ${iri}`)
auth.fetch(iri, {
method: 'PUT',
......@@ -1861,9 +1861,7 @@ export default new Vuex.Store({
return true
}
console.log('changeLDRessource');
console.log(oldUrl);
console.log(JSON.stringify(newUrl));
console.log(`changeLDRessource from: ${oldUrl} to ${newUrl}`)
setTimeout(() => {
var processes = getters.allProcesses()
......@@ -1901,8 +1899,8 @@ export default new Vuex.Store({
state.graph.remove(stsold[0])
}
commit('addStatements', stsnew)
commit('setLdRessource', newUrl)
}
commit('setLdRessource', newUrl)
// console.log("graph:\n" +state.graph);
resolve()
}, 1000)
......
......@@ -824,6 +824,8 @@ export default {
this.budget.data = this.$store.getters.intentsTotalList(focus, this.selected
.classification)
}
console.log(`LDResource: ${this.$store.state.ldRessource}`)
console.log(`focus: ${focus}`);
console.log(`budget.labels:\n${JSON.stringify(this.budget.labels, null, 4)}`)
console.log(`budget.data:\n${JSON.stringify(this.budget.data, null,4)}`)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment