mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-10 02:11:57 +00:00
chore: unique list
This commit is contained in:
parent
7a9549d1ca
commit
fab6c6f4f2
|
@ -41,8 +41,12 @@ const plotTemplates = ref<PlotConfigTemplate>({
|
|||
});
|
||||
|
||||
export function usePlotTemplates() {
|
||||
function getTemplateContent(templateName: string) {
|
||||
return plotTemplates.value[templateName] || {};
|
||||
}
|
||||
|
||||
function applyPlotTemplate(templateName: string, currentConfig: PlotConfig) {
|
||||
const template = plotTemplates.value[templateName];
|
||||
const template = getTemplateContent(templateName);
|
||||
if (!template) {
|
||||
return currentConfig;
|
||||
}
|
||||
|
@ -52,6 +56,7 @@ export function usePlotTemplates() {
|
|||
return {
|
||||
plotTemplates,
|
||||
applyPlotTemplate,
|
||||
getTemplateContent,
|
||||
plotTemplateNames: computed(() => Object.keys(plotTemplates.value)),
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user