Skip to content

Commit

Permalink
Update CRUDList.php
Browse files Browse the repository at this point in the history
  • Loading branch information
usernane authored Sep 17, 2022
1 parent ede4256 commit 0cb7236
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions wfc/ui/vuetify/CRUDList.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ private function createBody($props) {
])->addChild(new VBtn([
'@click' => $editAction.'(item, i)',
'icon' => 'mdi-pencil',
'icon',
'icon-props' => [
'color' => 'primary lighten-1',
'small'
Expand All @@ -174,6 +175,7 @@ private function createBody($props) {
$this->deleteBtn = new VBtn([
'@click' => $deleteConfirmAction.'(item, i)',
'icon' => 'mdi-delete',
'icon',
'icon-props' => [
'color' => 'red lighten-2',
'small'
Expand Down Expand Up @@ -217,6 +219,7 @@ private function createHeader($props) {
'v-bind'=>"attrs",
'v-on'=>"on",
'icon' => 'mdi-plus-circle',
'icon',
'icon-props' => [
'color' => "primary lighten-1"
]
Expand All @@ -231,6 +234,7 @@ private function addConfirmDeleteActions($props) {
$this->cancelConfirmBtn = $confirmActions->addChild(new VBtn([
'@click' => $props['confirm-delete-dialog'].".visible = false",
'icon' => 'mdi-close-circle',
'icon',
'icon-props' => [
'color' => 'red lighten-2'
]
Expand All @@ -241,6 +245,7 @@ private function addConfirmDeleteActions($props) {
$this->confirmBtn = $confirmActions->addChild(new VBtn([
'@click' => $deleteAction,
'icon' => 'mdi-check-circle',
'icon',
'icon-props' => [
'color' => 'green lighten-1'
]
Expand All @@ -257,6 +262,7 @@ private function addDialogActions($props) {
$this->cancelBtn = $actionsContainer->addChild(new VBtn([
'@click' => $props['dialog'].".visible = false",
'icon' => 'mdi-close-circle',
'icon',
'icon-props' => [
'color' => 'red lighten-2'
]
Expand All @@ -266,6 +272,7 @@ private function addDialogActions($props) {
$this->saveBtn = $actionsContainer->addChild(new VBtn([
'@click' => $addAction,
'icon' => 'mdi-check-circle',
'icon',
'icon-props' => [
'color' => 'green lighten-1'
]
Expand Down

0 comments on commit 0cb7236

Please sign in to comment.