Skip to content

Commit

Permalink
Fix server and account columns
Browse files Browse the repository at this point in the history
  • Loading branch information
tafid committed Nov 12, 2015
1 parent 45eee7d commit 4dae6e5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/controllers/BackupController.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,19 @@ public function actions()
'view' => [
'class' => 'hipanel\actions\ViewAction',
],
'delete' => [
'class' => 'hipanel\actions\SmartDeleteAction',
'success' => Yii::t('app', 'Backup deleting task has been added to queue'),
'error' => Yii::t('app', 'An error occurred when trying to delete backup')
],
];
}

public function getObjectOptions()
{
return [
'hdomain' => Yii::t('app', 'Domain'),
'db' => Yii::t('app', 'Data bases'),
'db' => Yii::t('app', 'Data Bases'),
];
}
}
}
2 changes: 2 additions & 0 deletions src/grid/BackupGridView.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,11 @@ static public function defaultColumns()
'filterAttribute' => 'backup_like',
],
'server' => [
'attribute' => 'server_id',
'class' => ServerColumn::className(),
],
'account' => [
'attribute' => 'account_id',
'class' => AccountColumn::className()
],
'object' => [
Expand Down

0 comments on commit 4dae6e5

Please sign in to comment.