16
16
{{ $t("message.share.close") }}
17
17
</c-button >
18
18
</header >
19
- <c-card-content >
19
+ <c-card-content id = " share-card-modal-content " >
20
20
<h6 class =" subtitle is-6 has-text-dark" >
21
21
{{ $t("message.share.share_subtitle") }}
22
22
</h6 >
@@ -213,8 +213,7 @@ export default {
213
213
this .getSharedDetails ();
214
214
this .closeSharedNotification ();
215
215
this .isShared = true ;
216
- this .timeout = setTimeout (
217
- () => this .closeSharedNotification (), 3000 );
216
+ this .closeSharedNotificationWithTimeout ();
218
217
}
219
218
},
220
219
);
@@ -298,6 +297,10 @@ export default {
298
297
this .isShared = false ;
299
298
this .isPermissionRemoved = false ;
300
299
},
300
+ closeSharedNotificationWithTimeout () {
301
+ document .getElementById (" share-card-modal-content" ).scrollTo (0 , 0 );
302
+ this .timeout = setTimeout (() => this .closeSharedNotification (), 3000 );
303
+ },
301
304
closeSharedNotification : function () {
302
305
if (this .timeout !== null ) {
303
306
clearTimeout (this .timeout );
@@ -319,7 +322,7 @@ export default {
319
322
updateSharedFolder : function () {
320
323
this .closeSharedNotification ();
321
324
this .isPermissionUpdated = true ;
322
- this .timeout = setTimeout (() => this . closeSharedNotification (), 3000 );
325
+ this .closeSharedNotificationWithTimeout ( );
323
326
},
324
327
removeSharedFolder : function (folderData ) {
325
328
this .closeSharedNotification ();
@@ -328,8 +331,7 @@ export default {
328
331
return item .sharedTo !== folderData .projectId .value ;
329
332
});
330
333
this .isPermissionRemoved = true ;
331
-
332
- this .timeout = setTimeout (() => this .closeSharedNotification (), 3000 );
334
+ this .closeSharedNotificationWithTimeout ();
333
335
},
334
336
},
335
337
};
0 commit comments