Răsfoiți Sursa

Add popup confirmation when clicking "Delete All" in cdb props

Leonardo Jeanteur 4 ani în urmă
părinte
comite
554cdc73fd
1 a modificat fișierele cu 2 adăugiri și 0 ștergeri
  1. 2 0
      hide/comp/cdb/Editor.hx

+ 2 - 0
hide/comp/cdb/Editor.hx

@@ -1024,6 +1024,8 @@ class Editor extends Component {
 			menu.insert(1,{ label : "Edit all", click : function() editScripts(table,col) });
 		if( table.displayMode == Properties ) {
 			menu.push({ label : "Delete All", click : function() {
+				if( !ide.confirm("Delete all rows?") )
+					return;
 				beginChanges(true);
 				table.sheet.deleteColumn(col.name);
 				endChanges();