update naming flock on frontend to lantai
This commit is contained in:
1 parent
0374a67335
commit
73bdb8c739
2 files changed
+12
-15
No files matched your search
@@ -157,7 +157,7 @@ const SettingsPage: React.FC = () => {
|
||||
<div>
|
||||
<PageHeader
|
||||
title="Pengaturan"
|
||||
subtitle="Site, kandang, flock (IoT), dan siklus produksi"
|
||||
subtitle="Site, kandang, lantai (IoT), dan siklus produksi"
|
||||
/>
|
||||
{error && (
|
||||
<div className="mb-4">
|
||||
@@ -466,9 +466,9 @@ const SettingsPage: React.FC = () => {
|
||||
)}
|
||||
</section>
|
||||
<section className="bg-white rounded-xl shadow-sm p-5">
|
||||
<h2 className="font-semibold text-gray-800 mb-3">Flock</h2>
|
||||
<h2 className="font-semibold text-gray-800 mb-3">Lantai</h2>
|
||||
<p className="mb-3 text-xs text-gray-500">
|
||||
Lantai tetap untuk kandang ini (dipakai Panel IoT). Tidak terikat ke siklus.
|
||||
Lantai tetap untuk kandang ini (dipakai Panel IoT).
|
||||
</p>
|
||||
{isSuperAdmin ? (
|
||||
<form
|
||||
@@ -482,13 +482,13 @@ const SettingsPage: React.FC = () => {
|
||||
kandang: selectedKandangId,
|
||||
});
|
||||
setFlockName('');
|
||||
flash(`Flock ${created.flock_name} dibuat.`);
|
||||
flash(`Lantai ${created.flock_name} dibuat.`);
|
||||
});
|
||||
}}
|
||||
>
|
||||
<input
|
||||
className={inputClass}
|
||||
placeholder="Nama flock"
|
||||
placeholder="Nama lantai"
|
||||
value={flockName}
|
||||
onChange={(e) => setFlockName(e.target.value)}
|
||||
required
|
||||
@@ -497,7 +497,7 @@ const SettingsPage: React.FC = () => {
|
||||
className="bg-red-600 text-white px-3 py-2 rounded-lg text-sm font-semibold"
|
||||
disabled={saving || !selectedKandangId}
|
||||
>
|
||||
Tambah flock
|
||||
Tambah lantai
|
||||
</button>
|
||||
</form>
|
||||
) : (
|
||||
@@ -520,7 +520,7 @@ const SettingsPage: React.FC = () => {
|
||||
onClick={() =>
|
||||
void wrap(async () => {
|
||||
await api.flocks.remove(flock.id);
|
||||
flash('Flock dihapus.');
|
||||
flash('Lantai dihapus.');
|
||||
})
|
||||
}
|
||||
>
|
||||
@@ -543,9 +543,6 @@ const SettingsPage: React.FC = () => {
|
||||
Salin
|
||||
</button>
|
||||
</div>
|
||||
<p className="text-[11px] text-gray-400">
|
||||
Konfigurasikan URL ini sebagai tujuan push di Panel IoT.
|
||||
</p>
|
||||
</div>
|
||||
</li>
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user