You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: components/google_drive/actions/add-file-sharing-preference/add-file-sharing-preference.mjs
+25-6Lines changed: 25 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ export default {
20
20
name: "Share File or Folder",
21
21
description:
22
22
"Add a [sharing permission](https://support.google.com/drive/answer/7166529) to the sharing preferences of a file or folder and provide a sharing URL. [See the documentation](https://developers.google.com/drive/api/v3/reference/permissions/create)",
23
-
version: "0.1.9",
23
+
version: "0.2.0",
24
24
type: "action",
25
25
props: {
26
26
googleDrive,
@@ -31,6 +31,16 @@ export default {
31
31
],
32
32
optional: true,
33
33
},
34
+
useFileOrFolder: {
35
+
type: "string",
36
+
label: "Use File or Folder",
37
+
description: "Whether to use a file or a folder for this action",
38
+
reloadProps: true,
39
+
options: [
40
+
"File",
41
+
"Folder",
42
+
],
43
+
},
34
44
fileId: {
35
45
propDefinition: [
36
46
googleDrive,
@@ -39,7 +49,7 @@ export default {
39
49
drive: c.drive,
40
50
}),
41
51
],
42
-
optional: true,
52
+
hidden: true,
43
53
description: "The file to share. You must specify either a file or a folder.",
44
54
},
45
55
folderId: {
@@ -50,7 +60,7 @@ export default {
50
60
drive: c.drive,
51
61
}),
52
62
],
53
-
optional: true,
63
+
hidden: true,
54
64
description: "The folder to share. You must specify either a file or a folder.",
0 commit comments