diff options
Diffstat (limited to 'src/scripts/controllers/modes/object.ts')
| -rw-r--r-- | src/scripts/controllers/modes/object.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/scripts/controllers/modes/object.ts b/src/scripts/controllers/modes/object.ts index d974df7a..bc358d71 100644 --- a/src/scripts/controllers/modes/object.ts +++ b/src/scripts/controllers/modes/object.ts @@ -1,4 +1,4 @@ -import {AppMode, MapController, InteractionLevel} from "../mapcontroller"; +import {AppMode, InteractionLevel, MapController} from "../mapcontroller"; import {MapView} from "../../views/mapview"; import * as $ from "jquery"; @@ -88,7 +88,7 @@ export class ObjectModeController { public setupEventListeners() { // Handler for saving a new rack name $("#rack-name-save").on("click", () => { - this.currentRack.name = $("#rack-name-input").val(); + this.currentRack.name = $("#rack-name-input").text(); this.mapController.api.updateRack(this.mapView.simulation.id, this.mapView.currentDatacenter.id, this.mapController.roomModeController.currentRoom.id, this.mapController.objectModeController.currentObjectTile.id, this.currentRack).then( |
