Skip to content

Commit

Permalink
add possibility to send password as a query
Browse files Browse the repository at this point in the history
  • Loading branch information
m-mattia-m committed Oct 3, 2024
1 parent 9a058b2 commit 69bb663
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pages/drive.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import {ArrowRightIcon, EyeIcon, EyeSlashIcon} from "@heroicons/vue/24/outline";
import getTailwindColor from "~/utils/get-tailwind-color";
import {AppAlert} from "#components";
const route = useRoute()
const showContent = ref(false)
const uploadDriveUrl = ref("")
const downloadDriveUrl = ref("")
Expand All @@ -20,6 +21,12 @@ const ifPasswordIsEmpty = computed((): boolean => {
return password.value === ""
})
onMounted(() => {
if (route.query["q"] !== null) password.value = route.query["p"] as string
if (password.value?.trim() !== "" && password.value?.trim() !== undefined) submitPassword()
})
function setLoadingAnimationColor() {
if (submitBtnFocused.value && submitBtnHovered.value) return loadingAnimationColor.value = colorDark
if (submitBtnFocused.value && !submitBtnHovered.value) return loadingAnimationColor.value = colorDark
Expand Down

0 comments on commit 69bb663

Please sign in to comment.