no-mistakes(review): Fix stale urgent priority when leaving emergency mode
This commit is contained in:
@@ -227,12 +227,16 @@
|
|||||||
// ── Report mode ──────────────────────────────────────────
|
// ── Report mode ──────────────────────────────────────────
|
||||||
setMode(mode) {
|
setMode(mode) {
|
||||||
this.mode = mode;
|
this.mode = mode;
|
||||||
// Reset category selection; emergency path fixes priority
|
// Reset category selection; priority follows mode
|
||||||
this.form.category_main = '';
|
this.form.category_main = '';
|
||||||
this.form.category_id = null;
|
this.form.category_id = null;
|
||||||
this.subCategories = [];
|
this.subCategories = [];
|
||||||
this.selectedCategoryHint = '';
|
this.selectedCategoryHint = '';
|
||||||
if (mode === 'emergency') this.form.priority = 'urgent';
|
if (mode === 'emergency') {
|
||||||
|
this.form.priority = 'urgent';
|
||||||
|
} else {
|
||||||
|
this.form.priority = '';
|
||||||
|
}
|
||||||
this.loadCategories();
|
this.loadCategories();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user