File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
sites/preview/src/lib/components Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 3
3
Tree ,
4
4
type FolderNode ,
5
5
type OnChildrenChangeArgs ,
6
+ type OnCircularReferenceArgs ,
6
7
type OnDropDestinationChangeArgs ,
7
8
type OnRemoveArgs ,
8
9
type OnResolveNameConflictArgs ,
52
53
});
53
54
}
54
55
56
+ function onCircularReference(args : OnCircularReferenceArgs ) {
57
+ toast .error (` Cannot move "${args .source .node .name }" inside itself ` );
58
+ }
59
+
55
60
function canRemove(args : OnRemoveArgs ) {
56
61
return confirmRemoveDialog ! .show ({
57
62
title: ` Are you sure you want to delete ${args .removed .length } item(s)? ` ,
94
99
{onChildrenChange }
95
100
{onDropDestinationChange }
96
101
{onResolveNameConflict }
102
+ {onCircularReference }
97
103
{canRemove }
98
104
class ={[
99
105
" relative grow p-6 focus-visible:outline-2 focus-visible:outline-current" ,
You can’t perform that action at this time.
0 commit comments