Skip to content

Commit

Permalink
Add delete functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
tafid committed Nov 12, 2015
1 parent 33b1c5b commit 746cc98
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/grid/BackupGridView.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ static public function defaultColumns()
],
'size_gb' => [
'attribute' => 'size_gb',
'filter' => false,
'value' => function($model) {
return sprintf('%s GB', $model->size_gb);
}
Expand Down
1 change: 1 addition & 0 deletions src/models/Backup.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ public function rules()
[['size'], 'integer'],
[['title', 'db_like', 'size_gb', 'time', 'domain_like', 'service', 'client', 'method', 'server', 'account', 'client', 'classes', 'name', 'ty', 'state', 'object'], 'safe'],
[['method_label', 'type_label', 'state_label'], 'safe'],
[['id'], 'integer', 'on' => ['delete']],
];
}

Expand Down

0 comments on commit 746cc98

Please sign in to comment.