web: change "delete" verb to "remove" for one-to-many relationships (#8535)
This commit is contained in:
@ -125,6 +125,7 @@ export class RelatedGroupList extends Table<Group> {
|
|||||||
actionSubtext=${msg(
|
actionSubtext=${msg(
|
||||||
str`Are you sure you want to remove user ${this.targetUser?.username} from the following groups?`,
|
str`Are you sure you want to remove user ${this.targetUser?.username} from the following groups?`,
|
||||||
)}
|
)}
|
||||||
|
buttonLabel=${msg("Remove")}
|
||||||
.objects=${this.selectedElements}
|
.objects=${this.selectedElements}
|
||||||
.delete=${(item: Group) => {
|
.delete=${(item: Group) => {
|
||||||
if (!this.targetUser) return;
|
if (!this.targetUser) return;
|
||||||
|
|||||||
@ -131,6 +131,9 @@ export class DeleteBulkForm<T> extends ModalButton {
|
|||||||
@property()
|
@property()
|
||||||
actionSubtext?: string;
|
actionSubtext?: string;
|
||||||
|
|
||||||
|
@property()
|
||||||
|
buttonLabel = msg("Delete");
|
||||||
|
|
||||||
@property({ attribute: false })
|
@property({ attribute: false })
|
||||||
metadata: (item: T) => BulkDeleteMetadata = (item: T) => {
|
metadata: (item: T) => BulkDeleteMetadata = (item: T) => {
|
||||||
const rec = item as Record<string, unknown>;
|
const rec = item as Record<string, unknown>;
|
||||||
@ -222,7 +225,7 @@ export class DeleteBulkForm<T> extends ModalButton {
|
|||||||
}}
|
}}
|
||||||
class="pf-m-danger"
|
class="pf-m-danger"
|
||||||
>
|
>
|
||||||
${msg("Delete")} </ak-spinner-button
|
${this.buttonLabel} </ak-spinner-button
|
||||||
>
|
>
|
||||||
<ak-spinner-button
|
<ak-spinner-button
|
||||||
.callAction=${async () => {
|
.callAction=${async () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user