chore: remove alerts
This commit is contained in:
@@ -128,7 +128,7 @@ export class UmbBlockTypeWorkspaceContext<BlockTypeData extends UmbBlockTypeWith
|
||||
return 'block name content element type here...';
|
||||
}
|
||||
setName(name: string | undefined) {
|
||||
alert('You cannot set a name of a block-type.');
|
||||
console.warn('You cannot set a name of a block type.');
|
||||
}
|
||||
|
||||
async propertyValueByAlias<ReturnType = unknown>(propertyAlias: string) {
|
||||
|
||||
@@ -7,7 +7,6 @@ export class UmbPermissionsEntityAction extends UmbEntityActionBase<never> {
|
||||
}
|
||||
|
||||
async execute() {
|
||||
alert('Not implemented');
|
||||
throw new Error('Method not implemented.');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -69,12 +69,7 @@ export class UmbMediaPickerCreateItemElement extends UmbLitElement {
|
||||
this._allowedMediaTypes,
|
||||
(item) => item.unique,
|
||||
(item) =>
|
||||
html`<uui-menu-item
|
||||
label=${item.name}
|
||||
@click=${() =>
|
||||
alert(
|
||||
'TODO: Open workspace (create) from modal. You can drop the files into this modal for now.',
|
||||
)}>
|
||||
html`<uui-menu-item label=${item.name}>
|
||||
<umb-icon slot="icon" name=${item.icon ?? 'icon-circle-dotted'}></umb-icon>
|
||||
</uui-menu-item>`,
|
||||
)}
|
||||
|
||||
@@ -36,10 +36,7 @@ export class UmbInputRichMediaElement extends UmbInputMediaElement {
|
||||
<uui-card-media
|
||||
name=${ifDefined(item.name === null ? undefined : item.name)}
|
||||
detail=${ifDefined(item.unique)}
|
||||
href="${this.editMediaPath}edit/${item.unique}"
|
||||
@open=${() => {
|
||||
alert('open media crops modal');
|
||||
}}>
|
||||
href="${this.editMediaPath}edit/${item.unique}">
|
||||
${item.url
|
||||
? html`<img src=${item.url} alt=${item.name} />`
|
||||
: html`<umb-icon name=${ifDefined(item.mediaType.icon)}></umb-icon>`}
|
||||
|
||||
@@ -78,7 +78,7 @@ export class UmbInstalledPackagesSectionViewItemElement extends UmbLitElement {
|
||||
}
|
||||
|
||||
// TODO: add dedicated modal for package views, and register it in a manifest.
|
||||
alert('package view modal temporarily disabled. See comment in code.');
|
||||
throw new Error('package view modal temporarily disabled.');
|
||||
/*
|
||||
this._modalContext?.open(this, element, {
|
||||
data: { name: this.name, version: this.version },
|
||||
|
||||
@@ -3,6 +3,6 @@ import { UmbEntityBulkActionBase } from '@umbraco-cms/backoffice/entity-bulk-act
|
||||
export class UmbSetGroupUserEntityBulkAction extends UmbEntityBulkActionBase<object> {
|
||||
async execute() {
|
||||
//TODO: Implement
|
||||
alert('Bulk set group is not implemented yet');
|
||||
throw new Error('Bulk set group is not implemented yet');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user