mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-01-06 15:42:12 +01:00
improve remove repository confirmation dialog
This commit is contained in:
@@ -221,7 +221,8 @@ if (Sonia.repository.Panel){
|
||||
|
||||
emptyText: 'Es wurde kein Repository selektiert',
|
||||
removeTitleText: 'Repository entfernen',
|
||||
removeMsgText: 'Repository entfernen "{0}"?',
|
||||
removeMsgText: 'Diese Aktion wird das Repository "{0}" permanent von der \n\
|
||||
Festplatte löschen?<br />Repository entfernen?',
|
||||
errorTitleText: 'Fehler',
|
||||
errorMsgText: 'Repository entfernen fehlgeschlagen'
|
||||
});
|
||||
|
||||
@@ -48,7 +48,8 @@ Sonia.repository.Panel = Ext.extend(Sonia.rest.Panel, {
|
||||
displayArchivedRepositoriesText: 'Archive',
|
||||
|
||||
removeTitleText: 'Remove Repository',
|
||||
removeMsgText: 'Remove Repository "{0}"?',
|
||||
removeMsgText: 'This action will permanently remove the data of the repository \n\
|
||||
"{0}" from your disk.<br />Do you want to proceed?',
|
||||
errorTitleText: 'Error',
|
||||
errorMsgText: 'Repository deletion failed',
|
||||
|
||||
@@ -255,12 +256,12 @@ Sonia.repository.Panel = Ext.extend(Sonia.rest.Panel, {
|
||||
return repository;
|
||||
},
|
||||
|
||||
executeRemoteCall: function(title, message, method, url, data, failureCallback){
|
||||
executeRemoteCall: function(title, message, method, url, data, failureCallback, icon){
|
||||
Ext.MessageBox.show({
|
||||
title: title,
|
||||
msg: message,
|
||||
buttons: Ext.MessageBox.OKCANCEL,
|
||||
icon: Ext.MessageBox.QUESTION,
|
||||
icon: icon ? icon : Ext.MessageBox.QUESTION,
|
||||
fn: function(result){
|
||||
if ( result === 'ok' ){
|
||||
|
||||
@@ -339,7 +340,8 @@ Sonia.repository.Panel = Ext.extend(Sonia.rest.Panel, {
|
||||
this.errorTitleText,
|
||||
this.errorMsgText
|
||||
);
|
||||
}
|
||||
},
|
||||
Ext.MessageBox.WARNING
|
||||
);
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user