@@ -44,6 +44,7 @@ export class SessionSettingsComponent implements OnInit {
4444 return this . _currretID
4545 }
4646 form = this . fb . group ( {
47+ name : [ this . data . session ?. name || '' , ] ,
4748 enable : [ this . data . session ?. enable , ] ,
4849 update_content : [ false , ] ,
4950 temporary_link_lifetime : [ 1 , ] ,
@@ -115,6 +116,7 @@ export class SessionSettingsComponent implements OnInit {
115116 1024 * 1024 ,
116117 {
117118 link_id : this . currentID ,
119+ name : this . form . value [ "name" ] ,
118120 enable : this . form . value [ "enable" ] ,
119121 onProgress : ( progress : number ) => {
120122 this . uploadProgress = progress
@@ -130,6 +132,7 @@ export class SessionSettingsComponent implements OnInit {
130132 }
131133 const payload : any = {
132134 file : fileData ,
135+ name : this . form . value [ "name" ] ,
133136 enable : this . form . value [ "enable" ]
134137 }
135138 const data = await this . accounts . curtainAPI . updateSession ( payload , this . currentID , encryption )
@@ -145,7 +148,7 @@ export class SessionSettingsComponent implements OnInit {
145148 this . isUpdating = false
146149 }
147150 } else {
148- const payload : any = { enable : this . form . value [ "enable" ] }
151+ const payload : any = { name : this . form . value [ "name" ] , enable : this . form . value [ "enable" ] }
149152 const encryption : CurtainEncryption = {
150153 encrypted : this . settings . settings . encrypted ,
151154 e2e : this . settings . settings . encrypted ,
0 commit comments