Added entity/searchdomain name to deletion confirmation warning for searchdomain and entity
This commit is contained in:
@@ -18,4 +18,10 @@
|
||||
<data name="InvalidCredentials" xml:space="preserve">
|
||||
<value>Ungültiger Benutzername oder Passwort.</value>
|
||||
</data>
|
||||
<data name="GenericDeleteConfirmation" xml:space="preserve">
|
||||
<value>Sind Sie sicher, dass Sie <strong id="{0}">diese Entity</strong> löschen wollen?</value>
|
||||
</data>
|
||||
<data name="IrreversibleActionWarning" xml:space="preserve">
|
||||
<value>Diese Aktion kann nicht rückgängig gemacht werden.</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -18,4 +18,10 @@
|
||||
<data name="InvalidCredentials" xml:space="preserve">
|
||||
<value>Invalid credentials.</value>
|
||||
</data>
|
||||
<data name="GenericDeleteConfirmation" xml:space="preserve">
|
||||
<value>Are you sure you want to delete <strong id="{0}">this entity</strong>?</value>
|
||||
</data>
|
||||
<data name="IrreversibleActionWarning" xml:space="preserve">
|
||||
<value>This action cannot be undone.</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -275,7 +275,8 @@
|
||||
</div>
|
||||
|
||||
<div class="modal-body">
|
||||
<p>@T["Are you sure you want to delete this searchdomain? This action cannot be undone."]</p>
|
||||
<p>@Html.Raw(T["GenericDeleteConfirmation", "deleteSearchdomainConfirmationModalName"])</p>
|
||||
<p>@T["IrreversibleActionWarning"]</p>
|
||||
</div>
|
||||
|
||||
<div class="modal-footer">
|
||||
@@ -408,7 +409,8 @@
|
||||
</div>
|
||||
|
||||
<div class="modal-body">
|
||||
<p>@T["Are you sure you want to delete this entity? This action cannot be undone."]</p>
|
||||
<p>@Html.Raw(T["GenericDeleteConfirmation", "deleteEntityConfirmationModalName"])</p>
|
||||
<p>@T["IrreversibleActionWarning"]</p>
|
||||
</div>
|
||||
|
||||
<div class="modal-footer">
|
||||
@@ -475,6 +477,9 @@
|
||||
document.getElementById('deleteSearchdomainModal')
|
||||
);
|
||||
modal.show();
|
||||
let searchdomain = domains[getSelectedDomainKey()];
|
||||
let deleteSearchdomainConfirmationModalName = document.getElementById('deleteSearchdomainConfirmationModalName');
|
||||
deleteSearchdomainConfirmationModalName.textContent = searchdomain;
|
||||
});
|
||||
document
|
||||
.getElementById('searchdomainConfirmDelete')
|
||||
@@ -964,6 +969,8 @@
|
||||
modal.show();
|
||||
let entityConfirmDelete = document.getElementById('EntityConfirmDelete');
|
||||
entityConfirmDelete.setAttribute('data-name', entity.Name);
|
||||
let deleteEntityConfirmationModalName = document.getElementById('deleteEntityConfirmationModalName');
|
||||
deleteEntityConfirmationModalName.textContent = entity.Name;
|
||||
});
|
||||
|
||||
actionCell.appendChild(detailsButton);
|
||||
|
||||
Reference in New Issue
Block a user