File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change 1
- const dialog = new Dialog ( {
2
- title : "Set desired permission" ,
3
- content : form ,
4
- buttons : {
5
- use : {
6
- label : "Apply permissions" ,
7
- callback : applyPermissions
8
- }
9
- }
10
- } ) . render ( true ) ;
11
-
12
1
const form = `
13
2
<div style="display: inline-block; width: 100px">Folder:</div>
14
3
<input type="string" id="folderName">
@@ -29,6 +18,17 @@ const form = `
29
18
</label>
30
19
` ;
31
20
21
+ const dialog = new Dialog ( {
22
+ title : "Set desired permission" ,
23
+ content : form ,
24
+ buttons : {
25
+ use : {
26
+ label : "Apply permissions" ,
27
+ callback : applyPermissions
28
+ }
29
+ }
30
+ } ) . render ( true ) ;
31
+
32
32
function applyPermissions ( html ) {
33
33
const folderName = html . find ( `input#folderName` ) [ 0 ] . value ;
34
34
const permission = html . find ( `select#desiredPermission` ) [ 0 ] . value ;
You can’t perform that action at this time.
0 commit comments