diff --git a/app/Http/Controllers/CompareController.php b/app/Http/Controllers/CompareController.php
index b2166759..ba61bdd0 100644
--- a/app/Http/Controllers/CompareController.php
+++ b/app/Http/Controllers/CompareController.php
@@ -35,7 +35,7 @@ public function show(Request $request, $hero = null)
'regions' => $this->globalDataService->getRegionIDtoString(),
'userinput' => $userinput,
'filters' => $this->globalDataService->getFilterData(),
- 'gametypedefault' => $this->globalDataService->getGameTypeDefault(),
+ 'gametypedefault' => $this->globalDataService->getGameTypeDefault("single"),
]);
}
diff --git a/app/Http/Controllers/Esports/EsportsController.php b/app/Http/Controllers/Esports/EsportsController.php
index 805f0ded..1a902ba6 100644
--- a/app/Http/Controllers/Esports/EsportsController.php
+++ b/app/Http/Controllers/Esports/EsportsController.php
@@ -45,11 +45,6 @@ public function show(Request $request)
return view('Esports.esportsMain')
->with([
'regions' => $this->globalDataService->getRegionIDtoString(),
- //'filters' => $this->globalDataService->getFilterData(),
- //'gametypedefault' => $this->globalDataService->getGameTypeDefault(),
- //'defaulttimeframetype' => $this->globalDataService->getDefaultTimeframeType(),
- //'defaulttimeframe' => [$this->globalDataService->getDefaultTimeframe()],
- //'defaultbuildtype' => $this->globalDataService->getDefaultBuildType()
]);
}
diff --git a/app/Http/Controllers/Global/GlobalCompositionsController.php b/app/Http/Controllers/Global/GlobalCompositionsController.php
index 83f5f087..4dd80deb 100644
--- a/app/Http/Controllers/Global/GlobalCompositionsController.php
+++ b/app/Http/Controllers/Global/GlobalCompositionsController.php
@@ -19,7 +19,7 @@ public function show(Request $request)
->with([
'regions' => $this->globalDataService->getRegionIDtoString(),
'filters' => $this->globalDataService->getFilterData(),
- 'gametypedefault' => $this->globalDataService->getGameTypeDefault(),
+ 'gametypedefault' => $this->globalDataService->getGameTypeDefault("multi"),
'advancedfiltering' => $this->globalDataService->getAdvancedFilterShowDefault(),
'defaulttimeframetype' => $this->globalDataService->getDefaultTimeframeType(),
'defaulttimeframe' => [$this->globalDataService->getDefaultTimeframe()],
diff --git a/app/Http/Controllers/Global/GlobalDraftController.php b/app/Http/Controllers/Global/GlobalDraftController.php
index 1adea5f3..5f962745 100644
--- a/app/Http/Controllers/Global/GlobalDraftController.php
+++ b/app/Http/Controllers/Global/GlobalDraftController.php
@@ -31,7 +31,7 @@ public function show(Request $request, $hero = null)
'regions' => $this->globalDataService->getRegionIDtoString(),
'userinput' => $userinput,
'filters' => $this->globalDataService->getFilterData(),
- 'gametypedefault' => $this->globalDataService->getGameTypeDefault(),
+ 'gametypedefault' => $this->globalDataService->getGameTypeDefault("multi"),
'advancedfiltering' => $this->globalDataService->getAdvancedFilterShowDefault(),
'defaulttimeframetype' => $this->globalDataService->getDefaultTimeframeType(),
'defaulttimeframe' => [$this->globalDataService->getDefaultTimeframe()],
diff --git a/app/Http/Controllers/Global/GlobalHeroMapStatsController.php b/app/Http/Controllers/Global/GlobalHeroMapStatsController.php
index 67c9ec27..22f1ca7c 100644
--- a/app/Http/Controllers/Global/GlobalHeroMapStatsController.php
+++ b/app/Http/Controllers/Global/GlobalHeroMapStatsController.php
@@ -33,7 +33,7 @@ public function show(Request $request, $hero = null)
'regions' => $this->globalDataService->getRegionIDtoString(),
'userinput' => $userinput,
'filters' => $this->globalDataService->getFilterData(),
- 'gametypedefault' => $this->globalDataService->getGameTypeDefault(),
+ 'gametypedefault' => $this->globalDataService->getGameTypeDefault("multi"),
'advancedfiltering' => $this->globalDataService->getAdvancedFilterShowDefault(),
'defaulttimeframetype' => $this->globalDataService->getDefaultTimeframeType(),
'defaulttimeframe' => [$this->globalDataService->getDefaultTimeframe()],
diff --git a/app/Http/Controllers/Global/GlobalHeroMatchupStatsController.php b/app/Http/Controllers/Global/GlobalHeroMatchupStatsController.php
index 2189e7d1..1fca0eb4 100644
--- a/app/Http/Controllers/Global/GlobalHeroMatchupStatsController.php
+++ b/app/Http/Controllers/Global/GlobalHeroMatchupStatsController.php
@@ -33,7 +33,7 @@ public function show(Request $request, $hero = null, $allyenemy = null)
'regions' => $this->globalDataService->getRegionIDtoString(),
'userinput' => $userinput,
'filters' => $this->globalDataService->getFilterData(),
- 'gametypedefault' => $this->globalDataService->getGameTypeDefault(),
+ 'gametypedefault' => $this->globalDataService->getGameTypeDefault("multi"),
'advancedfiltering' => $this->globalDataService->getAdvancedFilterShowDefault(),
'defaulttimeframetype' => $this->globalDataService->getDefaultTimeframeType(),
'defaulttimeframe' => [$this->globalDataService->getDefaultTimeframe()],
diff --git a/app/Http/Controllers/Global/GlobalHeroMatchupsTalentsController.php b/app/Http/Controllers/Global/GlobalHeroMatchupsTalentsController.php
index 4bb3160e..717b05f6 100644
--- a/app/Http/Controllers/Global/GlobalHeroMatchupsTalentsController.php
+++ b/app/Http/Controllers/Global/GlobalHeroMatchupsTalentsController.php
@@ -62,7 +62,7 @@ public function show(Request $request, $hero = null, $allyenemy = null)
'regions' => $this->globalDataService->getRegionIDtoString(),
'heroes' => $this->globalDataService->getHeroes(),
'filters' => $this->globalDataService->getFilterData(),
- 'gametypedefault' => $this->globalDataService->getGameTypeDefault(),
+ 'gametypedefault' => $this->globalDataService->getGameTypeDefault("multi"),
'defaulttimeframetype' => $this->globalDataService->getDefaultTimeframeType(),
'advancedfiltering' => $this->globalDataService->getAdvancedFilterShowDefault(),
'defaulttimeframe' => [$this->globalDataService->getDefaultTimeframe()],
diff --git a/app/Http/Controllers/Global/GlobalHeroStatsController.php b/app/Http/Controllers/Global/GlobalHeroStatsController.php
index 83a249a9..a4d61b82 100644
--- a/app/Http/Controllers/Global/GlobalHeroStatsController.php
+++ b/app/Http/Controllers/Global/GlobalHeroStatsController.php
@@ -21,7 +21,7 @@ public function show(Request $request)
->with([
'regions' => $this->globalDataService->getRegionIDtoString(),
'filters' => $this->globalDataService->getFilterData(),
- 'gametypedefault' => $this->globalDataService->getGameTypeDefault(),
+ 'gametypedefault' => $this->globalDataService->getGameTypeDefault("multi"),
'advancedfiltering' => $this->globalDataService->getAdvancedFilterShowDefault(),
'defaulttimeframetype' => $this->globalDataService->getDefaultTimeframeType(),
'defaulttimeframe' => [$this->globalDataService->getDefaultTimeframe()],
diff --git a/app/Http/Controllers/Global/GlobalLeaderboardController.php b/app/Http/Controllers/Global/GlobalLeaderboardController.php
index d5c7a9cb..05064f73 100644
--- a/app/Http/Controllers/Global/GlobalLeaderboardController.php
+++ b/app/Http/Controllers/Global/GlobalLeaderboardController.php
@@ -29,7 +29,7 @@ public function show(Request $request)
return view('Global.Leaderboard.globalLeaderboard')->with([
'regions' => $this->globalDataService->getRegionIDtoString(),
'filters' => $this->globalDataService->getFilterData(),
- 'gametypedefault' => $this->globalDataService->getGameTypeDefault(),
+ 'gametypedefault' => $this->globalDataService->getGameTypeDefault("single"),
'advancedfiltering' => $this->globalDataService->getAdvancedFilterShowDefault(),
'defaultseason' => (string) $this->globalDataService->getDefaultSeason(),
'weekssincestart' => $this->globalDataService->getWeeksSinceSeasonStart(),
diff --git a/app/Http/Controllers/Global/GlobalPartyStatsController.php b/app/Http/Controllers/Global/GlobalPartyStatsController.php
index 99012d92..9abd1609 100644
--- a/app/Http/Controllers/Global/GlobalPartyStatsController.php
+++ b/app/Http/Controllers/Global/GlobalPartyStatsController.php
@@ -17,7 +17,7 @@ public function show(Request $request)
->with([
'regions' => $this->globalDataService->getRegionIDtoString(),
'filters' => $this->globalDataService->getFilterData(),
- 'gametypedefault' => $this->globalDataService->getGameTypeDefault(),
+ 'gametypedefault' => $this->globalDataService->getGameTypeDefault("multi"),
'defaulttimeframetype' => $this->globalDataService->getDefaultTimeframeType(),
'advancedfiltering' => $this->globalDataService->getAdvancedFilterShowDefault(),
'defaulttimeframe' => [$this->globalDataService->getDefaultTimeframe()],
diff --git a/app/Http/Controllers/Global/GlobalTalentBuilderController.php b/app/Http/Controllers/Global/GlobalTalentBuilderController.php
index 417bf2e9..401a5247 100644
--- a/app/Http/Controllers/Global/GlobalTalentBuilderController.php
+++ b/app/Http/Controllers/Global/GlobalTalentBuilderController.php
@@ -33,7 +33,7 @@ public function show(Request $request, $hero = null)
'regions' => $this->globalDataService->getRegionIDtoString(),
'userinput' => $userinput,
'filters' => $this->globalDataService->getFilterData(),
- 'gametypedefault' => $this->globalDataService->getGameTypeDefault(),
+ 'gametypedefault' => $this->globalDataService->getGameTypeDefault("multi"),
'defaulttimeframetype' => $this->globalDataService->getDefaultTimeframeType(),
'advancedfiltering' => $this->globalDataService->getAdvancedFilterShowDefault(),
'defaulttimeframe' => [$this->globalDataService->getDefaultTimeframe()],
diff --git a/app/Http/Controllers/Global/GlobalTalentStatsController.php b/app/Http/Controllers/Global/GlobalTalentStatsController.php
index 664e93de..1d5b1bff 100644
--- a/app/Http/Controllers/Global/GlobalTalentStatsController.php
+++ b/app/Http/Controllers/Global/GlobalTalentStatsController.php
@@ -37,7 +37,7 @@ public function show(Request $request, $hero = null)
'heroes' => $this->globalDataService->getHeroes(),
'userinput' => $userinput,
'filters' => $this->globalDataService->getFilterData(),
- 'gametypedefault' => $this->globalDataService->getGameTypeDefault(),
+ 'gametypedefault' => $this->globalDataService->getGameTypeDefault("multi"),
'defaulttimeframetype' => $this->globalDataService->getDefaultTimeframeType(),
'advancedfiltering' => $this->globalDataService->getAdvancedFilterShowDefault(),
'defaulttimeframe' => [$this->globalDataService->getDefaultTimeframe()],
diff --git a/app/Http/Controllers/Player/FriendFoeController.php b/app/Http/Controllers/Player/FriendFoeController.php
index eeeaae37..126eed2e 100644
--- a/app/Http/Controllers/Player/FriendFoeController.php
+++ b/app/Http/Controllers/Player/FriendFoeController.php
@@ -57,7 +57,7 @@ public function show(Request $request, $battletag, $blizz_id, $region)
'season' => $season,
'game_type' => $game_type,
'game_map' => $game_map,
- 'gametypedefault' => $this->globalDataService->getGameTypeDefault(),
+ 'gametypedefault' => $this->globalDataService->getGameTypeDefault("multi"),
'filters' => $this->globalDataService->getFilterData(),
'patreon' => $this->globalDataService->checkIfSiteFlair($blizz_id, $region),
]);
diff --git a/app/Http/Controllers/Player/PlayerController.php b/app/Http/Controllers/Player/PlayerController.php
index c54f6493..0d5a56c9 100644
--- a/app/Http/Controllers/Player/PlayerController.php
+++ b/app/Http/Controllers/Player/PlayerController.php
@@ -34,9 +34,6 @@ public function show(Request $request, $battletag, $blizz_id, $region)
'region' => 'required|integer',
];
- if (request()->has('game_type')) {
- $validationRules['game_type'] = ['sometimes', 'nullable', new GameTypeInputValidation()];
- }
if (request()->has('season')) {
$validationRules['season'] = ['sometimes', 'nullable', new SeasonInputValidation()];
}
@@ -64,7 +61,6 @@ public function show(Request $request, $battletag, $blizz_id, $region)
}
$season = $request['season'];
- $game_type = $request['game_type'];
return view('Player.player')->with([
'regions' => $this->globalDataService->getRegionIDtoString(),
@@ -73,7 +69,7 @@ public function show(Request $request, $battletag, $blizz_id, $region)
'blizz_id' => $blizz_id,
'region' => $region,
'season' => $season,
- 'game_type' => $game_type,
+ 'gametypedefault' => $this->globalDataService->getGameTypeDefault("single"),
'filters' => $this->globalDataService->getFilterData(),
'patreon' => $this->globalDataService->checkIfSiteFlair($blizz_id, $region),
]);
diff --git a/app/Http/Controllers/Player/PlayerHeroesController.php b/app/Http/Controllers/Player/PlayerHeroesController.php
index 3b06b504..cbfd8d8f 100644
--- a/app/Http/Controllers/Player/PlayerHeroesController.php
+++ b/app/Http/Controllers/Player/PlayerHeroesController.php
@@ -41,6 +41,7 @@ public function showAll(Request $request, $battletag, $blizz_id, $region)
'region' => $region,
'filters' => $this->globalDataService->getFilterData(),
'patreon' => $this->globalDataService->checkIfSiteFlair($blizz_id, $region),
+ 'gametypedefault' => $this->globalDataService->getGameTypeDefault("multi"),
]);
}
@@ -73,6 +74,7 @@ public function showSingle(Request $request, $battletag, $blizz_id, $region, $he
'filters' => $this->globalDataService->getFilterData(),
'regions' => $this->globalDataService->getRegionIDtoString(),
'patreon' => $this->globalDataService->checkIfSiteFlair($blizz_id, $region),
+ 'gametypedefault' => $this->globalDataService->getGameTypeDefault("single"),
]);
}
}
diff --git a/app/Http/Controllers/Player/PlayerMMRController.php b/app/Http/Controllers/Player/PlayerMMRController.php
index 1e8c693a..44d0048a 100644
--- a/app/Http/Controllers/Player/PlayerMMRController.php
+++ b/app/Http/Controllers/Player/PlayerMMRController.php
@@ -39,7 +39,7 @@ public function show(Request $request, $battletag, $blizz_id, $region)
'blizz_id' => $blizz_id,
'region' => $region,
'filters' => $this->globalDataService->getFilterData(),
- 'gametypedefault' => $this->globalDataService->getGameTypeDefault(),
+ 'gametypedefault' => $this->globalDataService->getGameTypeDefault("single"),
'patreon' => $this->globalDataService->checkIfSiteFlair($blizz_id, $region),
]);
}
diff --git a/app/Http/Controllers/Player/PlayerMapsController.php b/app/Http/Controllers/Player/PlayerMapsController.php
index 3d8267c1..a0793e2d 100644
--- a/app/Http/Controllers/Player/PlayerMapsController.php
+++ b/app/Http/Controllers/Player/PlayerMapsController.php
@@ -42,6 +42,8 @@ public function showAll(Request $request, $battletag, $blizz_id, $region)
'region' => $region,
'filters' => $this->globalDataService->getFilterData(),
'patreon' => $this->globalDataService->checkIfSiteFlair($blizz_id, $region),
+ 'gametypedefault' => $this->globalDataService->getGameTypeDefault("multi"),
+
]);
}
@@ -76,6 +78,8 @@ public function showSingle(Request $request, $battletag, $blizz_id, $region, $ma
'filters' => $this->globalDataService->getFilterData(),
'regions' => $this->globalDataService->getRegionIDtoString(),
'patreon' => $this->globalDataService->checkIfSiteFlair($blizz_id, $region),
+ 'gametypedefault' => $this->globalDataService->getGameTypeDefault("single"),
+
]);
}
}
diff --git a/app/Http/Controllers/Player/PlayerMatchHistory.php b/app/Http/Controllers/Player/PlayerMatchHistory.php
index 96654522..e61049d9 100644
--- a/app/Http/Controllers/Player/PlayerMatchHistory.php
+++ b/app/Http/Controllers/Player/PlayerMatchHistory.php
@@ -40,7 +40,7 @@ public function show(Request $request, $battletag, $blizz_id, $region)
'blizz_id' => $blizz_id,
'region' => $region,
'filters' => $this->globalDataService->getFilterData(),
- 'gametypedefault' => $this->globalDataService->getGameTypeDefault(),
+ 'gametypedefault' => $this->globalDataService->getGameTypeDefault("multi"),
'patreon' => $this->globalDataService->checkIfSiteFlair($blizz_id, $region),
]);
}
diff --git a/app/Http/Controllers/Player/PlayerMatchupsController.php b/app/Http/Controllers/Player/PlayerMatchupsController.php
index 7e466923..2c99af26 100644
--- a/app/Http/Controllers/Player/PlayerMatchupsController.php
+++ b/app/Http/Controllers/Player/PlayerMatchupsController.php
@@ -39,6 +39,8 @@ public function show(Request $request, $battletag, $blizz_id, $region)
'region' => $region,
'filters' => $this->globalDataService->getFilterData(),
'patreon' => $this->globalDataService->checkIfSiteFlair($blizz_id, $region),
+ 'gametypedefault' => $this->globalDataService->getGameTypeDefault("multi"),
+
]);
}
diff --git a/app/Http/Controllers/Player/PlayerRolesController.php b/app/Http/Controllers/Player/PlayerRolesController.php
index 3465179e..2d853ba9 100644
--- a/app/Http/Controllers/Player/PlayerRolesController.php
+++ b/app/Http/Controllers/Player/PlayerRolesController.php
@@ -36,6 +36,8 @@ public function showAll(Request $request, $battletag, $blizz_id, $region)
'region' => $region,
'filters' => $this->globalDataService->getFilterData(),
'patreon' => $this->globalDataService->checkIfSiteFlair($blizz_id, $region),
+ 'gametypedefault' => $this->globalDataService->getGameTypeDefault("multi"),
+
]);
}
@@ -66,6 +68,8 @@ public function showSingle(Request $request, $battletag, $blizz_id, $region, $ro
'filters' => $this->globalDataService->getFilterData(),
'regions' => $this->globalDataService->getRegionIDtoString(),
'patreon' => $this->globalDataService->checkIfSiteFlair($blizz_id, $region),
+ 'gametypedefault' => $this->globalDataService->getGameTypeDefault("single"),
+
]);
}
}
diff --git a/app/Http/Controllers/Player/PlayerTalentsController.php b/app/Http/Controllers/Player/PlayerTalentsController.php
index ea93b317..23747b39 100644
--- a/app/Http/Controllers/Player/PlayerTalentsController.php
+++ b/app/Http/Controllers/Player/PlayerTalentsController.php
@@ -52,6 +52,7 @@ public function show(Request $request, $battletag, $blizz_id, $region)
'talentimages' => $this->globalDataService->getPreloadTalentImageUrls(),
'patreon' => $this->globalDataService->checkIfSiteFlair($blizz_id, $region),
'heroes' => $this->globalDataService->getHeroes(),
+ 'gametypedefault' => $this->globalDataService->getGameTypeDefault("multi"),
]);
}
diff --git a/app/Http/Controllers/ProfileController.php b/app/Http/Controllers/ProfileController.php
index 1c0cd664..4dd26a3c 100644
--- a/app/Http/Controllers/ProfileController.php
+++ b/app/Http/Controllers/ProfileController.php
@@ -62,21 +62,33 @@ public function saveSettings(Request $request)
['value' => $userhero]
);
}
-
+
if (! is_null($request['usergametype'])) {
$user = BattlenetAccount::find($request['userid']);
- $userGameTypes = $request['usergametype'];
+ $usergametype = $request['usergametype'];
+
+ $user->userSettings()->updateOrCreate(
+ ['setting' => 'game_type'],
+ ['value' => $usergametype]
+ );
+ }
+
+
+ if (! is_null($request['usermultigametype'])) {
+ $user = BattlenetAccount::find($request['userid']);
+
+ $userGameTypes = $request['usermultigametype'];
$existingGameTypes = GameType::whereIn('short_name', $userGameTypes)->pluck('short_name')->all();
if (count($existingGameTypes) === count($userGameTypes)) {
- $usergametype = $request['usergametype'];
+ $usergametype = $request['usermultigametype'];
} else {
return ['success' => false];
}
$user->userSettings()->updateOrCreate(
- ['setting' => 'game_type'],
- ['value' => implode(',', $usergametype)]
+ ['setting' => 'multi_game_type'],
+ ['value' => implode(',', $userGameTypes)]
);
}
diff --git a/app/Services/GlobalDataService.php b/app/Services/GlobalDataService.php
index 900348b4..700d0643 100644
--- a/app/Services/GlobalDataService.php
+++ b/app/Services/GlobalDataService.php
@@ -22,12 +22,9 @@
class GlobalDataService
{
- private $filtersMinimumPatch;
-
public function __construct()
{
- //can add modifier here for patreons to reduce what they can filter on
- $this->filtersMinimumPatch = '2.53.0.83004';
+
}
public function getHeaderAlert()
@@ -84,6 +81,12 @@ public function getDefaultBuildType()
{
if (Auth::check()) {
$user = Auth::user();
+
+
+ $talentbuildtype = $user->userSettings->firstWhere('setting', 'talentbuildtype');
+
+ return $talentbuildtype ? $talentbuildtype->value : 'Popular';
+
}
return 'Popular';
@@ -236,21 +239,28 @@ public function getAdvancedFilterShowDefault()
}
- public function getGameTypeDefault()
+ public function getGameTypeDefault($type)
{
if (Auth::check()) {
$user = Auth::user();
- $gameTypeSetting = $user->userSettings->firstWhere('setting', 'game_type');
-
- if ($gameTypeSetting) {
- $gameTypeValue = $gameTypeSetting->value;
-
- return explode(',', $gameTypeSetting->value);
+ if($type == "single"){
+ $gameTypeSetting = $user->userSettings->firstWhere('setting', 'game_type');
+ if ($gameTypeSetting) {
+ return [$gameTypeSetting->value];
+ }
+ }else{
+ $gameTypeSetting = $user->userSettings->firstWhere('setting', 'multi_game_type');
+ if ($gameTypeSetting) {
+ $gameTypeValue = $gameTypeSetting->value;
+
+ return explode(',', $gameTypeSetting->value);
+ }
}
- }
+
+ }
return ['sl'];
}
@@ -261,6 +271,15 @@ public function getDefaultSeason()
public function getFilterData()
{
+ $filtersMinimumPatch = '2.53.0.83004';
+ if (Auth::check()) {
+ $user = Auth::user();
+
+ if($this->checkIfSiteFlair($user->blizz_id, $user->region) || $this->isOwner($user->blizz_id, $user->region)){
+ $filtersMinimumPatch = '2.52.0.81700';
+ }
+ }
+
$filterData = new \stdClass;
$filterData->timeframe_type = [
@@ -269,7 +288,7 @@ public function getFilterData()
];
$filterData->timeframes = SeasonGameVersion::select('game_version')
- ->where('game_version', '>=', $this->filtersMinimumPatch)
+ ->where('game_version', '>=', $filtersMinimumPatch)
->orderBy('game_version', 'DESC')
->get()
->map(function ($item) {
@@ -277,7 +296,7 @@ public function getFilterData()
});
$filterData->timeframes_grouped = SeasonGameVersion::select('game_version')
- ->where('game_version', '>=', $this->filtersMinimumPatch)
+ ->where('game_version', '>=', $filtersMinimumPatch)
->orderBy('game_version', 'DESC')
->get()
->groupBy(function ($date) {
@@ -696,4 +715,8 @@ public function checkIfSiteFlair($blizz_id, $region)
return false;
}
+
+ public function isOwner($blizz_id, $region){
+ return ($blizz_id == 67280 and $region == 1) ? true : false;
+ }
}
diff --git a/resources/js/components/Filtering/Filters.vue b/resources/js/components/Filtering/Filters.vue
index c3322f67..8b3ee507 100644
--- a/resources/js/components/Filtering/Filters.vue
+++ b/resources/js/components/Filtering/Filters.vue
@@ -181,7 +181,7 @@
:values="filters.talent_build_types"
:text="'Talent Build Type'"
@input-changed="handleInputChange"
- :defaultValue="filters.talent_build_types[0].code"
+ :defaultValue="buildtypedefault"
>
@@ -302,6 +302,7 @@
advancedfiltering: Boolean,
defaultHero: Number,
defaultRole: String,
+ buildtypedefault: String,
},
data(){
diff --git a/resources/js/components/Global/Hero/GlobalHeroStats.vue b/resources/js/components/Global/Hero/GlobalHeroStats.vue
index 8677cd8a..14cf4525 100644
--- a/resources/js/components/Global/Hero/GlobalHeroStats.vue
+++ b/resources/js/components/Global/Hero/GlobalHeroStats.vue
@@ -24,6 +24,7 @@
:includemirror="true"
:includetalentbuildtype="true"
:advancedfiltering="advancedfiltering"
+ :buildtypedefault="defaultbuildtype"
>