WIP #300 Tried to extract out an independent vue component to prevent shared primevue option
This commit is contained in:
@@ -4,6 +4,8 @@ import apiError from '@/module/apiError.js';
|
||||
export default defineStore('performanceStore', {
|
||||
state: () => ({
|
||||
allPerformanceData: null,
|
||||
freqChartData: null,
|
||||
freqChartOptions: null,
|
||||
}),
|
||||
getters: {
|
||||
performanceData: state => {
|
||||
@@ -33,6 +35,20 @@ export default defineStore('performanceStore', {
|
||||
} catch(error) {
|
||||
apiError(error, 'Failed to load the Performance.');
|
||||
}
|
||||
}
|
||||
},
|
||||
/**
|
||||
* In PrimeVue format
|
||||
* @param {object} freqChartData
|
||||
*/
|
||||
setFreqChartData(freqChartData){
|
||||
this.freqChartData = freqChartData;
|
||||
},
|
||||
/**
|
||||
* In PrimeVue format
|
||||
* @param {object} freqChartOptions
|
||||
*/
|
||||
setFreqChartOptions(freqChartOptions){
|
||||
this.freqChartOptions = freqChartOptions;
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user