Fix message formatting and dosctring syntax

This commit is contained in:
Julian Stirling 2025-07-24 17:54:58 +01:00
parent 25d2f400b1
commit 75bdae5593
3 changed files with 3 additions and 8 deletions

View file

@ -44,17 +44,12 @@ export default {
},
methods: {
alertBackgroundFraction(r) {
let fraction = r.output;
// let percentage = (fraction * 100).toFixed(0);
this.modalNotify(`Current image is ${fraction.toFixed(0)}% background.`);
},
alertBackgroundSet() {
this.modalNotify(`Background image has been updated`);
},
alertImageLabel(r) {
let label = r.output[0] ? "sample" : "background";
this.modalNotify(`Current image is ${label}, as ${r.output[1]}`);
this.modalNotify(`Current image is ${label} (${r.output[1]})`);
},
backgroundDetectError() {
this.modalError(