perbaikan edit master
This commit is contained in:
parent
3b3757e2a7
commit
2a6cf6410d
|
@ -13,7 +13,7 @@
|
||||||
href="https://allbestsistem.com/"
|
href="https://allbestsistem.com/"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
style="background-color: #ffffff !important;"
|
style="background-color: #ffffff !important;"
|
||||||
>Smart Building Management Systems (V@2024-07-22.01)
|
>Smart Building Management Systems (V@2024-07-22.03)
|
||||||
</a></span
|
</a></span
|
||||||
>
|
>
|
||||||
</p>
|
</p>
|
||||||
|
|
|
@ -85,7 +85,7 @@ export class MasterRoomComponent {
|
||||||
if (result) {
|
if (result) {
|
||||||
const filteredData = {
|
const filteredData = {
|
||||||
name: result.name,
|
name: result.name,
|
||||||
code: result.code,
|
code: result.code.trim(),
|
||||||
description: result.description,
|
description: result.description,
|
||||||
};
|
};
|
||||||
this.monitoringApiService
|
this.monitoringApiService
|
||||||
|
@ -122,13 +122,19 @@ export class MasterRoomComponent {
|
||||||
const filteredData = {
|
const filteredData = {
|
||||||
id: result.roomId,
|
id: result.roomId,
|
||||||
name: result.name,
|
name: result.name,
|
||||||
code: result.code,
|
code: result.code.trim(),
|
||||||
description: result.description,
|
description: result.description,
|
||||||
};
|
};
|
||||||
this.monitoringApiService
|
this.monitoringApiService
|
||||||
.putMasterRoomParam(filteredData, row.id)
|
.putMasterRoomParam(filteredData, row.id)
|
||||||
.subscribe((res) => {
|
.subscribe((res) => {
|
||||||
this.fetchData();
|
this.fetchData();
|
||||||
|
}, (error) => {
|
||||||
|
console.error(error);
|
||||||
|
this.toastr.error("Error", error.error.message, {
|
||||||
|
timeOut: 2000,
|
||||||
|
closeButton: true,
|
||||||
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -138,7 +138,7 @@
|
||||||
<p
|
<p
|
||||||
class="card-subtitle line-on-side text-muted text-center font-small-3 mx-2 my-1"
|
class="card-subtitle line-on-side text-muted text-center font-small-3 mx-2 my-1"
|
||||||
>
|
>
|
||||||
<span>(v@2024.07.22.01)</span>
|
<span>(v@2024.07.22.03)</span>
|
||||||
</p>
|
</p>
|
||||||
<!-- <div class="card-body">
|
<!-- <div class="card-body">
|
||||||
<a
|
<a
|
||||||
|
|
Loading…
Reference in New Issue