Skip to content

Commit

Permalink
Quest: Allow copy to campaign
Browse files Browse the repository at this point in the history
  • Loading branch information
J. Payne committed Jan 11, 2020
1 parent d3c44bf commit caf0d9d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion resources/views/cruds/_actions.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
</a>
</li>
@endcan
@if ((empty($disableMove) || !$disableMove) && getenv('APP_ENV') !== 'shadow' && Auth::check() && Auth::user()->hasOtherCampaigns($model->campaign_id))
@if ((empty($disableCopyCampaign) || !$disableCopyCampaign) && getenv('APP_ENV') !== 'shadow' && Auth::check() && Auth::user()->hasOtherCampaigns($model->campaign_id))
<li>
<a href="{{ route('entities.copy_to_campaign', $model->entity->id) }}">
<i class="fa fa-clone" aria-hidden="true"></i> {{ trans('crud.actions.copy_to_campaign') }}
Expand Down
2 changes: 1 addition & 1 deletion resources/views/menu_links/show.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
@endif
</ul>

@include('.cruds._actions', ['disableMove' => true])
@include('.cruds._actions', ['disableMove' => true, 'disableCopyCampaign' => true])
</div>
</div>
</div>
Expand Down

0 comments on commit caf0d9d

Please sign in to comment.