parent
e4cc833ccc
commit
6a47b867a4
2 changed files with 2 additions and 1 deletions
|
|
@ -1051,7 +1051,7 @@ function renderSounds(sounds) {
|
||||||
item.className = 'sound-item';
|
item.className = 'sound-item';
|
||||||
|
|
||||||
// Only show delete button if user is creator or owner
|
// Only show delete button if user is creator or owner
|
||||||
const canDelete = state.user && (state.user.id === sound.created_by_user_id || (state.guilds.find(g => g.id === state.selectedGuildId)?.owner_user_id === state.user.id));
|
const canDelete = state.me && (state.me.id === sound.created_by_user_id || (state.guilds.find(g => g.id === state.selectedGuildId)?.owner_user_id === state.me.id));
|
||||||
|
|
||||||
item.innerHTML = `
|
item.innerHTML = `
|
||||||
<div class="sound-icon">${sound.icon}</div>
|
<div class="sound-icon">${sound.icon}</div>
|
||||||
|
|
|
||||||
|
|
@ -716,6 +716,7 @@ select {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: all var(--transition);
|
transition: all var(--transition);
|
||||||
border: 1px solid transparent;
|
border: 1px solid transparent;
|
||||||
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sound-item:hover {
|
.sound-item:hover {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue