This repository was archived by the owner on Mar 4, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -262,9 +262,12 @@ <h4 style="vertical-align: middle;"><a class="blackLink" href="https://api.dbhub
262
262
< div class ="col-md-6 ">
263
263
< table class ="table table-striped table-responsive profileTable " data-cy ="livedbstbl ">
264
264
< tr ng-repeat ="row in livedbs ">
265
- < td >
265
+ < td style =" border: 1px solid #ddd " >
266
266
< h4 > {{ row.owner_name }}/{{ row.database_name }}</ h4 >
267
267
</ td >
268
+ < td >
269
+ < button type ="button " class ="btn btn-danger " ng-click ="confirmDelete(row.database_name) " data-cy ="delbtn "> Delete database</ button >
270
+ </ td >
268
271
</ tr >
269
272
</ table >
270
273
</ div >
@@ -287,6 +290,12 @@ <h4>{{ row.owner_name }}/{{ row.database_name }}</h4>
287
290
$scope . stars = { Stars : [ [ . Stars ] ] } ;
288
291
$scope . watching = [ [ . Watching ] ] ;
289
292
293
+ // Bounce to the database deletion page
294
+ $scope . confirmDelete = function ( path ) {
295
+ //console.log(path);
296
+ window . location = '/confirmdelete/[[ .Meta.Owner ]]/' + path ;
297
+ } ;
298
+
290
299
// Returns a nicely presented "time elapsed" string
291
300
$scope . getTimePeriodTxt = function ( date1 , includeOn ) {
292
301
return getTimePeriod ( date1 , includeOn )
You can’t perform that action at this time.
0 commit comments