mirror of
https://github.com/versia-pub/frontend.git
synced 2026-03-13 03:29:16 +01:00
refactor: ♻️ Port all buttons to new UI library
This commit is contained in:
parent
13faf840dd
commit
091615b04e
20 changed files with 120 additions and 155 deletions
|
|
@ -13,13 +13,13 @@
|
|||
<span class="font-semibold text-gray-300">{{ provider.name }}</span>
|
||||
</div>
|
||||
<div>
|
||||
<ButtonPrimary :loading="loading" v-if="!linkedProviders?.find(p => p.id === provider.id)"
|
||||
@click="link(provider.id)">
|
||||
<span>Link</span>
|
||||
</ButtonPrimary>
|
||||
<ButtonSecondary :loading="loading" v-else @click="unlink(provider.id)">
|
||||
<span>Unlink</span>
|
||||
</ButtonSecondary>
|
||||
<Button theme="primary" :loading="loading"
|
||||
v-if="!linkedProviders?.find(p => p.id === provider.id)" @click="link(provider.id)">
|
||||
Link
|
||||
</Button>
|
||||
<Button theme="secondary" :loading="loading" v-else @click="unlink(provider.id)">
|
||||
Unlink
|
||||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -29,9 +29,8 @@
|
|||
|
||||
<script lang="ts" setup>
|
||||
import type { ResponseError } from "@lysand-org/client";
|
||||
import Button from "~/packages/ui/components/buttons/button.vue";
|
||||
import Avatar from "../avatars/avatar.vue";
|
||||
import ButtonPrimary from "../buttons/button-primary.vue";
|
||||
import ButtonSecondary from "../buttons/button-secondary.vue";
|
||||
|
||||
const client = useClient();
|
||||
const ssoConfig = useSSOConfig();
|
||||
|
|
|
|||
|
|
@ -30,12 +30,12 @@
|
|||
</div>
|
||||
|
||||
<div class="px-4 mt-4 grid grid-cols-2 gap-2">
|
||||
<ButtonPrimary class="w-full" type="submit" :loading="loading">
|
||||
<Button theme="primary" class="w-full" type="submit" :loading="loading">
|
||||
<span>Save</span>
|
||||
</ButtonPrimary>
|
||||
<ButtonSecondary class="w-full" @click="revert" type="button" :loading="loading">
|
||||
</Button>
|
||||
<Button theme="secondary" class="w-full" @click="revert" type="button" :loading="loading">
|
||||
<span>Revert</span>
|
||||
</ButtonSecondary>
|
||||
</Button>
|
||||
</div>
|
||||
</form>
|
||||
<div>
|
||||
|
|
@ -46,9 +46,8 @@
|
|||
|
||||
<script lang="ts" setup>
|
||||
import type { ResponseError } from "@lysand-org/client";
|
||||
import Button from "~/packages/ui/components/buttons/button.vue";
|
||||
import Avatar from "../avatars/avatar.vue";
|
||||
import ButtonPrimary from "../buttons/button-primary.vue";
|
||||
import ButtonSecondary from "../buttons/button-secondary.vue";
|
||||
import RichTextboxInput from "../inputs/rich-textbox-input.vue";
|
||||
import TextInput from "../inputs/text-input.vue";
|
||||
import Oidc from "./oidc.vue";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue