-
Notifications
You must be signed in to change notification settings - Fork 162
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add AuthRequiredPanel to AuthConfirmDialog (#367)
- Loading branch information
1 parent
41ff4ad
commit ce53651
Showing
4 changed files
with
59 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,17 @@ | ||
<script setup lang="ts"> | ||
import { AuthComfirm } from '~/composables/dialog' | ||
import { AuthConfirm } from '~/composables/dialog' | ||
</script> | ||
|
||
<template> | ||
<AuthComfirm v-slot="{ resolve }"> | ||
<NDialog :model-value="true" @close="resolve(false)"> | ||
<div p4 flex="~ col gap-2"> | ||
<h3 class="mb2 text-lg font-medium leading-6" flex="~ items-center gap-1" text-orange> | ||
<span class="i-carbon-information-square" /> Permissions required | ||
</h3> | ||
<p> | ||
This operation requires permissions for running command and access files from the browser. | ||
</p> | ||
<p> | ||
A request is sent to the server.<br> | ||
Please check your terminal for the instructions and then come back. | ||
</p> | ||
<div flex="~ gap-3" mt2 justify-end> | ||
<AuthConfirm v-slot="{ resolve }"> | ||
<NDialog :model-value="!isDevAuthed" class="border-none" @close="resolve(false)"> | ||
<AuthRequiredPanel> | ||
<template #actions> | ||
<NButton @click="resolve(false)"> | ||
Cancel | ||
</NButton> | ||
<NButton disabled icon="i-carbon-time"> | ||
Waiting for authorization... | ||
</NButton> | ||
</div> | ||
</div> | ||
</template> | ||
</AuthRequiredPanel> | ||
</NDialog> | ||
</AuthComfirm> | ||
</AuthConfirm> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters