https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38854
Bug ID: 38854
Summary: Prettier fails on ToolbarButton because of 'class'
prop
Change sponsored?: ---
Product: Koha
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P5 - low
Component: ERM
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
CC: [email protected],
[email protected],
[email protected],
[email protected],
[email protected]
Depends on: 34215
New version of prettier fails on ToolbarButton because of (I guess) what it
thinks is a reserver keyword.
[error] koha-tmpl/intranet-tmpl/prog/js/vue/components/ToolbarButton.vue:
SyntaxError: Unexpected token, expected "{" (1:6)
[error] > 1 | class
[error] | ^
The error does not really make sense, the code is:
class: {
type: String,
default: "btn btn-default",
},
A solution could be to rename the property, but actually we never use another
value than the default one. The easiest seems to simply remove this property.
Referenced Bugs:
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34215
[Bug 34215] Vue Toolbar component should be more flexible
--
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/