wip
This commit is contained in:
1 parent
31f86944bd
commit
d2733e16bc
1 file changed
+14
@@ -252,8 +252,10 @@ trait GrappingSofascore
|
|||||||
$this->restart = 1;
|
$this->restart = 1;
|
||||||
break;
|
break;
|
||||||
case 'clear':
|
case 'clear':
|
||||||
|
if ($this->confirm_delete() == 'Yes') {
|
||||||
$this->restart = 1;
|
$this->restart = 1;
|
||||||
$this->clear_folder($folder, 'all');
|
$this->clear_folder($folder, 'all');
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -432,4 +434,16 @@ trait GrappingSofascore
|
|||||||
]
|
]
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected function confirm_delete(): string
|
||||||
|
{
|
||||||
|
return select(
|
||||||
|
label: 'Confirm delete!',
|
||||||
|
default: 'no',
|
||||||
|
options: [
|
||||||
|
'no' => 'No',
|
||||||
|
'yes' => 'Yes',
|
||||||
|
]
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user