Skip to content

Commit

Permalink
Merge pull request #1839 from frappe/develop
Browse files Browse the repository at this point in the history
dev to main
  • Loading branch information
sumitbhanushali committed Jun 17, 2024
2 parents bc4457a + a11ca84 commit 957b2ae
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 9 deletions.
1 change: 1 addition & 0 deletions desk/src/components/SidebarLink.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
}"
>
{{ label }}
<slot name="right" />
</div>
</div>
</template>
Expand Down
16 changes: 9 additions & 7 deletions desk/src/components/desk/sidebar/SideBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
}"
>
<UserMenu class="mb-2 ml-0.5" :options="profileSettings" />
<!-- <SidebarLink
<SidebarLink
label="Search"
class="mb-1"
:icon="LucideSearch"
Expand All @@ -20,7 +20,7 @@
<span>K</span>
</span>
</template>
</SidebarLink> -->
</SidebarLink>
<span class="mb-4">
<div
v-if="notificationStore.unread"
Expand Down Expand Up @@ -94,13 +94,15 @@ import LucideTicket from "~icons/lucide/ticket";
import LucideUser from "~icons/lucide/user";
import LucideUserCircle2 from "~icons/lucide/user-circle-2";
import LucideUsers from "~icons/lucide/users";
import LucideSearch from "~icons/lucide/search";
const route = useRoute();
const router = useRouter();
const authStore = useAuthStore();
const keymapStore = useKeymapStore();
const notificationStore = useNotificationStore();
const { isExpanded, width } = storeToRefs(useSidebarStore());
const device = useDevice();
const menuOptions = computed(() => [
{
Expand Down Expand Up @@ -161,9 +163,9 @@ const profileSettings = [
},
];
// function openCommandPalette() {
// window.dispatchEvent(
// new KeyboardEvent("keydown", { key: "k", metaKey: true })
// );
// }
function openCommandPalette() {
window.dispatchEvent(
new KeyboardEvent("keydown", { key: "k", metaKey: true })
);
}
</script>
16 changes: 14 additions & 2 deletions desk/src/pages/TicketAgent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,8 @@
</template>
<script setup lang="ts">
import { computed, ref, h } from "vue";
import { computed, ref, h, watch } from "vue";
import { useStorage } from "@vueuse/core";
import {
Breadcrumbs,
Dropdown,
Expand Down Expand Up @@ -171,7 +172,11 @@ const props = defineProps({
},
});
const showFullActivity = ref(true);
let storage = useStorage("ticket_agent", {
showAllActivity: true,
});
const showFullActivity = ref(storage.value.showAllActivity);
const showAssignmentModal = ref(false);
const showSubjectDialog = ref(false);
Expand Down Expand Up @@ -213,6 +218,13 @@ const breadcrumbs = computed(() => {
return items;
});
watch(
() => showFullActivity.value,
(value) => {
storage.value.showAllActivity = value;
}
);
const dropdownOptions = computed(() =>
ticketStatusStore.options.map((o) => ({
label: o,
Expand Down

0 comments on commit 957b2ae

Please sign in to comment.