Explorar o código

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

Leonardo Jeanteur %!s(int64=4) %!d(string=hai) anos
pai
achega
554cdc73fd
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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();