File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed
resources/scripts/components/server/backups Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ public function server()
101101 *
102102 * @return $this
103103 */
104- public static function factory (string $ action , array $ metadata , bool $ isSystem = false )
104+ public static function instance (string $ action , array $ metadata , bool $ isSystem = false )
105105 {
106106 /** @var \Illuminate\Http\Request $request */
107107 $ request = Container::getInstance ()->make ('request ' );
Original file line number Diff line number Diff line change @@ -336,7 +336,7 @@ public function mounts()
336336 */
337337 public function newAuditEvent (string $ action , array $ metadata = []): AuditLog
338338 {
339- return AuditLog::factory ($ action , $ metadata )->fill ([
339+ return AuditLog::instance ($ action , $ metadata )->fill ([
340340 'server_id ' => $ this ->id ,
341341 ]);
342342 }
Original file line number Diff line number Diff line change @@ -71,7 +71,8 @@ export default ({ backup }: Props) => {
7171 console . error ( error ) ;
7272 clearAndAddHttpError ( { key : 'backups' , error } ) ;
7373 } )
74- . then ( ( ) => setLoading ( false ) ) ;
74+ . then ( ( ) => setLoading ( false ) )
75+ . then ( ( ) => setModal ( '' ) ) ;
7576 } ;
7677
7778 return (
You can’t perform that action at this time.
0 commit comments