Skip to content

Commit

Permalink
Standardize header menus
Browse files Browse the repository at this point in the history
  • Loading branch information
williamjallen committed Feb 10, 2025
1 parent ea98271 commit 67b6cb1
Show file tree
Hide file tree
Showing 8 changed files with 131 additions and 445 deletions.
9 changes: 7 additions & 2 deletions app/Http/Controllers/ManageBannerController.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,14 @@ public function manageBanner(): View|RedirectResponse
}
}

return $this->view('admin.banner')
->with('project', $project)
$retval = $this->view('admin.banner')
->with('available_projects', $available_projects)
->with('banner', $banner);

if ($project->Id > 0) {
$retval = $retval->with('project', $project);
}

return $retval;
}
}
2 changes: 0 additions & 2 deletions resources/js/vue/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import ManageMeasurements from './components/ManageMeasurements';
import Monitor from './components/Monitor';
import TestDetails from './components/TestDetails';
import HeaderNav from './components/page-header/HeaderNav.vue';
import HeaderMenu from './components/page-header/HeaderMenu.vue';
import HeaderLogo from './components/page-header/HeaderLogo.vue';
import ViewDynamicAnalysis from './components/ViewDynamicAnalysis.vue';
import AllProjects from './components/AllProjects.vue';
Expand Down Expand Up @@ -56,7 +55,6 @@ const cdash_components = {
Monitor,
TestDetails,
HeaderNav,
HeaderMenu,
HeaderLogo,
ViewDynamicAnalysis,
AllProjects,
Expand Down
311 changes: 0 additions & 311 deletions resources/js/vue/components/page-header/HeaderMenu.vue

This file was deleted.

4 changes: 2 additions & 2 deletions resources/views/admin/banner.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<form
name="form1"
method="post"
action="{{ url('manageBanner.php') }}?projectid={{ $project->Id }}"
action="{{ url('manageBanner.php') }}?projectid={{ $project->Id ?? 0 }}"
>
<select
onchange="location = '{{ url('manageBanner.php') }}?projectid='+this.options[this.selectedIndex].value;"
Expand All @@ -37,7 +37,7 @@
<form
name="formnewgroup"
method="post"
action="{{ url('manageBanner.php') }}?projectid={{ $project->Id }}"
action="{{ url('manageBanner.php') }}?projectid={{ $project->Id ?? 0 }}"
>
<table width="100%" border="0">
<tr>
Expand Down
Loading

0 comments on commit 67b6cb1

Please sign in to comment.