Skip to content

Commit

Permalink
Keep unset in route leave
Browse files Browse the repository at this point in the history
  • Loading branch information
Severino committed Dec 13, 2024
1 parent f6b8871 commit 8c08599
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions resources/js/components/EntityDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,7 @@
v-if="state.activeUsers.length > 0"
class="d-flex flex-row gap-1 align-items-center"
>
<div
class="avatar-list"
>
<div class="avatar-list">
<a
v-for="user in state.activeUsers"
:key="user.id"
Expand All @@ -184,9 +182,7 @@
</div>
<div class="d-flex flex-row gap-1 align-items-center">
<i class="fas fa-fw fa-user-edit" />
<span
:title="date(state.lastModified, undefined, true, true)"
>
<span :title="date(state.lastModified, undefined, true, true)">
{{ ago(state.lastModified) }}
</span>
-
Expand Down Expand Up @@ -421,7 +417,7 @@
onBeforeRouteUpdate,
} from 'vue-router';
import {useI18n} from 'vue-i18n';
import { useI18n } from 'vue-i18n';
import {
Popover,
Expand All @@ -431,7 +427,7 @@
import useEntityStore from '@/bootstrap/stores/entity.js';
import router from '%router';
import {useToast} from '@/plugins/toast.js';
import { useToast } from '@/plugins/toast.js';
import {
ago,
Expand Down Expand Up @@ -498,7 +494,7 @@
}
},
setup(props) {
const {t} = useI18n();
const { t } = useI18n();
const route = useRoute();
const toast = useToast();
const attributeStore = useAttributeStore();
Expand Down Expand Up @@ -906,7 +902,7 @@
const dirtyValues = getDirtyValues(grps);
const patches = [];
const moderations = [];
if(Object.keys(dirtyValues).length == 0 ) return;
if(Object.keys(dirtyValues).length == 0) return;
for(let v in dirtyValues) {
const aid = v;
Expand Down Expand Up @@ -1100,6 +1096,7 @@
return false;
} else {
leaveEntityRoom(channels.entity);
entityStore.unset();
channels.entity = null;
return true;
}
Expand Down

0 comments on commit 8c08599

Please sign in to comment.