Skip to content

Commit 97e1fd7

Browse files
committed
Update update.vue
Add ability to change 2D Home index number in the admin panel
1 parent 7bf1d67 commit 97e1fd7

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

spa/src/pages/admin/place/update.vue

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@
1616
<td class="text-right p-2">Description: </td>
1717
<td class="w-96 p-2"><input class="text-black w-full" v-model="place.description" type="text" /></td>
1818
</tr>
19+
<tr v-if="isTypeIncluded(['home'])">
20+
<td class="text-right p-2">2D Home Index: </td>
21+
<td class="w-96 p-2"><input class="text-black w-full" v-model="place.map_icon_index" type="text" /></td>
22+
</tr>
1923
<tr v-if="isTypeIncluded(['public', 'shop', 'colony', 'private'])">
2024
<td class="text-right p-2">Slug: </td>
2125
<td class="w-96 p-2"><input class="text-black w-full" v-model="place.slug" type="text" /></td>
@@ -64,6 +68,7 @@ export default Vue.extend({
6468
return {
6569
accessLevel: "none",
6670
oldName: "",
71+
icon2D: null,
6772
place: {} as any,
6873
error: "",
6974
success: "",
@@ -89,6 +94,7 @@ export default Vue.extend({
8994
await this.$http.get(`/place/by_id/${this.$route.params.id}`).then((response) => {
9095
this.place = response.data.place;
9196
this.oldName = response.data.place.name;
97+
this.icon2D = response.data.place.map_icon_index;
9298
});
9399
} catch (e) {
94100
console.log(e);

0 commit comments

Comments
 (0)