Jelajahi Sumber

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

Leonardo Jeanteur 4 tahun lalu
induk
melakukan
554cdc73fd
1 mengubah file dengan 2 tambahan dan 0 penghapusan
  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();