mirror of
https://github.com/vastsa/FileCodeBoxFronted.git
synced 2026-11-25 14:29:35 +08:00
fix: login-guide button contrast and use ROUTES constants
Dark-mode CTA had both text-white and text-zinc-900; send the user to login via ROUTES instead of hardcoded paths.
This commit is contained in:
1 parent
b806a36800
commit
1a96ab0224
2 files changed
+4
-3
No files matched your search
@@ -6,6 +6,7 @@ import { useAdminStore } from '@/stores/adminStore'
|
||||
import { useConfigStore } from '@/stores/configStore'
|
||||
import { useFileDataStore } from '@/stores/fileData'
|
||||
import type { SendType, SentFileRecord, UploadProgress } from '@/types'
|
||||
import { ROUTES } from '@/constants'
|
||||
import { getClipboardFile, insertTextAtSelection } from '@/utils/clipboard-paste'
|
||||
import { getErrorMessage } from '@/utils/common'
|
||||
import { getStorageUnit } from '@/utils/convert'
|
||||
@@ -110,7 +111,7 @@ export function useSendFlow() {
|
||||
)
|
||||
|
||||
const goLoginForUpload = () => {
|
||||
router.push({ path: '/login', query: { redirect: '/send' } })
|
||||
router.push({ path: ROUTES.LOGIN, query: { redirect: ROUTES.SEND } })
|
||||
}
|
||||
|
||||
const checkOpenUpload = () => {
|
||||
|
||||
@@ -51,8 +51,8 @@
|
||||
</div>
|
||||
<button
|
||||
type="button"
|
||||
class="rounded-xl px-5 py-2.5 text-sm font-semibold text-white transition-colors"
|
||||
:class="isDarkMode ? 'bg-zinc-100 text-zinc-900 hover:bg-white' : 'bg-zinc-900 hover:bg-zinc-700'"
|
||||
class="rounded-xl px-5 py-2.5 text-sm font-semibold transition-colors"
|
||||
:class="isDarkMode ? 'bg-zinc-100 text-zinc-900 hover:bg-white' : 'bg-zinc-900 text-white hover:bg-zinc-700'"
|
||||
@click="goLoginForUpload"
|
||||
>
|
||||
{{ t('send.messages.guestUploadBlockedAction') }}
|
||||
|
||||
Reference in new issue
Block a user