@dosgato/templating 0.0.37 → 0.0.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/component.js +3 -2
- package/package.json +1 -1
package/dist/component.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { isNotBlank } from 'txstate-utils';
|
|
1
2
|
import { editBar, newBar } from './editbar.js';
|
|
2
3
|
import { ResourceProvider } from './provider.js';
|
|
3
4
|
/**
|
|
@@ -160,12 +161,12 @@ export class Component extends ResourceProvider {
|
|
|
160
161
|
newBar(areaName, opts = {}) {
|
|
161
162
|
opts.label ?? (opts.label = this.newLabel(areaName));
|
|
162
163
|
opts.extraClass ?? (opts.extraClass = this.newClass(areaName));
|
|
163
|
-
return newBar(this.path
|
|
164
|
+
return newBar([this.path, 'areas', areaName].filter(isNotBlank).join('.'), opts);
|
|
164
165
|
}
|
|
165
166
|
}
|
|
166
167
|
export class Page extends Component {
|
|
167
168
|
constructor(page) {
|
|
168
|
-
super(page.data, '
|
|
169
|
+
super(page.data, '', undefined);
|
|
169
170
|
this.pagePath = page.path;
|
|
170
171
|
}
|
|
171
172
|
passError(e, path) {
|