Merge branch 'feature/dictionary-delete-and-create-action' of https://github.com/umbraco/Umbraco.CMS.Backoffice into feature/dictionary-delete-and-create-action

This commit is contained in:
Mads Rasmussen
2023-11-13 15:07:21 +01:00
2 changed files with 14 additions and 0 deletions

View File

@@ -36,6 +36,7 @@ export class UmbStylesheetTreeRepository
}
async requestRootTreeItems() {
console.log('stylesheet root');
await this.#init;
const { data, error } = await this.#treeDataSource.getRootItems();
@@ -49,6 +50,9 @@ export class UmbStylesheetTreeRepository
async requestTreeItemsOf(path: string | null) {
if (path === undefined) throw new Error('Cannot request tree item with missing path');
if (path === null || path === '/' || path === '') {
return this.requestRootTreeItems();
}
await this.#init;

View File

@@ -140,6 +140,16 @@ export default {
</head>
<body>
<script type="module" src="${testFramework}"></script>
<script type="module">
/* Hack to disable Lit dev mode warnings */
const systemWarn = window.console.warn;
window.console.warn = (...args) => {
if (args[0].indexOf('Lit is in dev mode.') === 0) {
return;
}
systemWarn(...args);
};
</script>
<script type="module">
import 'element-internals-polyfill';
import '@umbraco-ui/uui';