mirror of
https://github.com/rakion99/shelter-editor.git
synced 2026-09-22 18:12:15 +00:00
Improved the Name Bug Fix
The name bug fix is a bit better now, as internally it sets the name to "Vault Dweller" when the name string is empty, but does not act as invasive in the UI.
This commit is contained in:
1 parent
ef484e9f34
commit
8597ea1c58
1 file changed
+9
-3
+9
-3
@@ -207,10 +207,16 @@ app.controller('dwellerController', function ($scope) {
|
||||
return _firstName
|
||||
},
|
||||
set: function (val) {
|
||||
if(val.trim().length == 0) val = "Vault Dweller";
|
||||
_firstName = val;
|
||||
|
||||
$scope.dweller.name = val;
|
||||
_firstName = val;
|
||||
if(val.trim().length == 0)
|
||||
{
|
||||
$scope.dweller.name = "Vault Dweller";
|
||||
}
|
||||
else
|
||||
{
|
||||
$scope.dweller.name = val;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user