template href
This commit is contained in:
@@ -39,6 +39,7 @@ export class UmbTemplateSearchServerDataSource implements UmbSearchDataSource<Um
|
||||
if (data) {
|
||||
const mappedItems: Array<UmbTemplateSearchItemModel> = data.items.map((item) => {
|
||||
return {
|
||||
href: '/section/settings/workspace/template/edit/' + item.id,
|
||||
entityType: UMB_TEMPLATE_ENTITY_TYPE,
|
||||
unique: item.id,
|
||||
name: item.name,
|
||||
|
||||
@@ -3,7 +3,9 @@ import { UmbTemplateSearchRepository } from './template-search.repository.js';
|
||||
import type { UmbSearchProvider, UmbSearchRequestArgs } from '@umbraco-cms/backoffice/search';
|
||||
import { UmbControllerBase } from '@umbraco-cms/backoffice/class-api';
|
||||
|
||||
export interface UmbTemplateSearchItemModel extends UmbTemplateItemModel {}
|
||||
export interface UmbTemplateSearchItemModel extends UmbTemplateItemModel {
|
||||
href: string;
|
||||
}
|
||||
|
||||
export class UmbTemplateSearchProvider
|
||||
extends UmbControllerBase
|
||||
|
||||
Reference in New Issue
Block a user