[fix] emotion not reloading
This commit is contained in:
@@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
let subMenu = 0
|
let subMenu = 0
|
||||||
let subberMenu = 0
|
let subberMenu = 0
|
||||||
|
let emos:[string, string][] = []
|
||||||
let tokens = {
|
let tokens = {
|
||||||
desc: 0,
|
desc: 0,
|
||||||
firstMsg: 0,
|
firstMsg: 0,
|
||||||
@@ -119,13 +119,18 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
emos = currentChar.data.emotionImages
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
$: {
|
$: {
|
||||||
if(database.characters[$selectedCharID].chaId === currentChar.data.chaId){
|
if(database.characters[$selectedCharID].chaId === currentChar.data.chaId){
|
||||||
database.characters[$selectedCharID] = currentChar.data
|
database.characters[$selectedCharID] = currentChar.data
|
||||||
}
|
}
|
||||||
|
else{
|
||||||
|
loadTokenize(currentChar.data)
|
||||||
|
}
|
||||||
|
emos = currentChar.data.emotionImages
|
||||||
DataBase.set(database)
|
DataBase.set(database)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -252,8 +257,8 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<div class="text-gray-500">{language.noImages}</div>
|
<div class="text-gray-500">{language.noImages}</div>
|
||||||
</tr>
|
</tr>
|
||||||
{/if}
|
{:else}
|
||||||
{#each currentChar.data.emotionImages as emo, i}
|
{#each emos as emo, i}
|
||||||
<tr>
|
<tr>
|
||||||
{#await getCharImage(emo[1], 'plain')}
|
{#await getCharImage(emo[1], 'plain')}
|
||||||
<td class="font-medium truncate w-1/3"></td>
|
<td class="font-medium truncate w-1/3"></td>
|
||||||
@@ -268,6 +273,7 @@
|
|||||||
}}><TrashIcon /></button>
|
}}><TrashIcon /></button>
|
||||||
</tr>
|
</tr>
|
||||||
{/each}
|
{/each}
|
||||||
|
{/if}
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<div class="text-gray-500 hover:text-neutral-200 mt-2 flex">
|
<div class="text-gray-500 hover:text-neutral-200 mt-2 flex">
|
||||||
|
|||||||
Reference in New Issue
Block a user